1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00
A backup mirror of my ~/bin folder that's hosted on Github. https://github.com/sbrl/bin
Find a file
2017-11-19 09:48:12 +00:00
Ascidia@932d1b44d6 Add Ascidia again as a submodule 2016-09-14 21:12:23 +01:00
cloudsurfer Rename cloudjumper -> cloudsurfer 2017-07-05 13:18:48 +01:00
.bash_aliases Add telepick 2017-11-17 23:07:36 +00:00
.bash_host Add option to explicitly specify $VISUAL in .bash_host as some systems need it apparently 2017-10-09 19:03:22 +01:00
.bashrc Bump bash history size 2017-11-19 09:48:12 +00:00
.gitmodules Add Ascidia again as a submodule 2016-09-14 21:12:23 +01:00
.hh_favorites Merge branch 'master' of github.com:sbrl/bin 2017-11-16 16:28:57 +00:00
ascidia Add ascidia 2016-09-14 21:08:51 +01:00
backup Add senddir 2017-01-15 08:58:47 +00:00
brightness.sh Make brightness.sh executable 2017-01-15 14:37:34 +00:00
catimg Update catimg 2017-08-26 21:57:22 +01:00
colortrans Add colortrans 2017-05-06 22:30:45 +01:00
commacd.sh Add commacd setup file 2016-06-23 20:23:29 +01:00
cscz Update cscz 2017-01-04 14:55:50 +00:00
ctx Initial commit. 2015-12-11 10:29:22 +00:00
cycleswap Added cycleswap 2016-01-15 18:41:38 +00:00
decrypt Initial commit. 2015-12-11 10:29:22 +00:00
drop_pagecache Added drop_pagecache 2016-06-23 20:25:47 +01:00
dropbox_uploader.sh Initial commit. 2015-12-11 10:29:22 +00:00
dropshell Initial commit. 2015-12-11 10:29:22 +00:00
dtach Add dtach binary 2016-06-23 20:24:00 +01:00
encrypt Initial commit. 2015-12-11 10:29:22 +00:00
envsetup Optionally set up meld as the default merge tool if a display is present (ssh sessions don't have a display) 2017-05-08 11:56:02 +02:00
exit_fullscreen.sh Added command to safely exit fullscreen without crashing ubuntu (hopefully) 2016-02-10 17:47:41 +00:00
extract Initial commit. 2015-12-11 10:29:22 +00:00
fdupes Initial commit. 2015-12-11 10:29:22 +00:00
genimagecomparisonframes Add genimagecomparisonframes 2016-05-24 19:49:08 +01:00
goldilocks Add goldilocks 2016-09-12 21:25:38 +02:00
hastebin Fix hastebin script 2016-07-23 15:43:56 +01:00
hr Initial commit. 2015-12-11 10:29:22 +00:00
htdigest.sh Initial commit. 2015-12-11 10:29:22 +00:00
listenclip Add listenclip 2017-02-24 18:19:14 +00:00
mail-service-restart Initial commit. 2015-12-11 10:29:22 +00:00
micro Update micro 2017-06-09 22:00:45 +01:00
mk-ca-bundle.pl Initial commit. 2015-12-11 10:29:22 +00:00
mountunishares Added mountunishares. 2016-03-21 19:52:57 +00:00
nautilus-here Add nautilus-here 2017-05-09 18:32:31 +01:00
node-update Fix bugs in node-update 2017-06-23 21:34:21 +01:00
ogg-cover-art Add ogg-cover-art 2017-01-05 13:38:03 +00:00
organise-photos organise-photos: Fix error in month calculation 2017-09-22 14:29:35 +01:00
pd-setup.sh Add pd 2016-03-21 19:56:00 +00:00
ports Initial commit. 2015-12-11 10:29:22 +00:00
ps_mem Initial commit. 2015-12-11 10:29:22 +00:00
ptr Add ptr bash command 2017-02-24 18:11:25 +00:00
quickshare Add quickshare 2016-07-05 18:51:01 +01:00
quote-get Merge branch 'master' of github.com:sbrl/bin 2017-11-15 21:57:44 +00:00
README.md Add telepick to README 2017-11-17 23:08:01 +00:00
recorduptime Initial commit. 2015-12-11 10:29:22 +00:00
recvdir Add pv to send/recv dir 2017-01-15 09:33:21 +00:00
repren Add repren 2016-07-31 20:08:46 +01:00
restart-reason Addr restart-reason for tracking the reason that I restart my server 2016-02-05 18:36:52 +00:00
rmilter_setup Add script to setup for rmilter to run 2016-01-13 21:02:25 +00:00
run-on-amd Add run-on-amd command 2017-08-26 21:57:40 +01:00
sendclip Add sendclip 2017-05-09 19:22:39 +02:00
senddir Improve grammar in senddir 2017-05-09 18:30:21 +01:00
serveclip Add serveclip 2017-05-09 18:54:59 +01:00
shellshare Add shellshare 2017-04-01 14:43:55 +02:00
speedtest-cli Add speedtest-cli 2016-03-21 19:50:33 +00:00
splitdotmbox.sh Initial commit. 2015-12-11 10:29:22 +00:00
ssh-retry Add ssh-retry 2017-05-09 18:34:45 +01:00
stealtime Initial commit. 2015-12-11 10:29:22 +00:00
style Added style (LuRsT/style) 2015-12-11 19:10:20 +00:00
swappiness Add command to change swapiness 2016-02-10 17:48:07 +00:00
swapusage Initial commit. 2015-12-11 10:29:22 +00:00
systemctl-restart Add systemctl-restart 2016-01-31 21:06:38 +00:00
tig Add tig 2016-05-04 21:16:10 +01:00
tldr Update tldr 2017-10-29 21:53:45 +00:00
wifi-list Added wifi-list 2016-04-20 13:04:35 +01:00
wifi-list.awk Added wifi-list 2016-04-20 13:04:35 +01:00
xidel Add xidel 2016-05-02 17:50:27 +01:00
z.sh Add z.sh 2016-01-13 21:02:38 +00:00

bin

My Linux ~/bin folder, including my .bashrc and .bash_aliases.

This repository will contain all the various tools and / or commands I find that I put in my ~/bin folder.

Here's a list of the most interesting ones, along with what they do and where they came from (assuming I can find / remember):

  • style - Add style to your output
  • hr - A horizontal ruler for your terminal
  • dropbox_uploader.sh - Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox.
  • swapusage - Shows swap usage by process. Useful for determining which services to restart if you aren't allowed to fiddle with your swap.
  • extract - Extracts several different types of archive.
  • mail-service-restart - Restarts all service related to my mail server. Currently needs upgrading to use systemd.
  • decrypt - Decrypts something encrypted with a password with openssl.
  • encrypt - Encrpyts something with a password with openssl.
  • splitdotmbox.sh - Splits a .mbox file into it's component messages
  • ctx - Shows contact switches by process in real time
  • ps_mem - Shows memory usage by process.
  • node-update - Adapted from a bash script given in a github issue for io.js, this script will update you to the latest version of node. I think that there's a bug with it, but it works well enough for me.
  • stealtime - Tells you how much of your CPU time has been stolen by other virtual machines.
  • speedtest-cli
  • mountunishares - A script that automatically mounts my university file shares.
  • pd - A directory stack helper. Insanely useful - I think I picked it up from a superuser answer somewhere.
  • transfer - A look that looks very useful. Like termbin.com, but for any kind of file. Keeps files for 14 days, and has an uppder limit of 5GB.
  • xidel - A (what looks like) a brilliant html extraction tool. Supports various selector languages.
  • micro - A new (experimental) terminal-based text editor.
  • tig - A terminal-based git repository browser.
  • backup - A script I wrote to make using Duplicity easier.
  • genimagecomparisonframes - Another script I wrote to generate the frames for the first half of this video.
  • dtach - A minimal alternative to screen and tmux.
  • commacd - A faster way to move around.
  • drop_pagecache - A quick script I wrote to drop the linux page cache.
  • hastebin - A hastebin CLI.
  • quickshare - A quick way to share files via HTTP.
  • cscz - The one and only C# class generator. A little timesaving tool I built myself, written in C# or course :D
  • repren - A good bulk file renaming tool.
  • goldilocks - A script that displays all of the possible terminal colours.
  • catimg - A cool script to display images in the terminal. Useful when you're sshing into servers.
  • tldr - A bash client for tldr-pages.
  • git ignore - A really useful subcommand for git that allows you to generate ignore files automagically.
  • organise-photos - A small bash script I wrote that organises the photos in a directory by year & month.
  • ogg-cover-art - A script that adds cover art to ogg files.
  • senddir - A small script I wrote to send whole directories over the network as a temporary thing. Uses netcat + gzip + tar.
  • recvdir - The counterpart to the above that receives the directory sent.
  • brightness.sh - Another small script I've written that controls the brightness of my screen. It works for me, but it may not work for you.
  • ptr - A small script I wrote that uses dig to do PTR (reverse DNS) lookups, since I have to keep looking the command up every time :P
    • clip
      • setclip - Sets the clipboard to the contents of the standard input
      • getclip - Sends the current clipboard contents out of the standard output
      • listenclip - Listens on localhost:5556 and pipes any data recieved into the clipboard. Make sure you're firewall is working correctly!
      • sendclip - Pipes stdin to localhost:5556. Useful in conjuntion with ssh port forwarding and the tool above.
      • serveclip - Serves the clipboard on port 5557. Doesn't close the connection automatically, sadly - pathes welcome!
  • shellshare - A live terminal broadcasting utility.
  • colortrans - Convert rgb colours to xterm ones
  • nautilus-here - A quick command that opens nautilus in the current directory. For lazy people :P
  • ssh-retry - I forget where it came from, but this command reepeatedly calls ssh until it succeeds in connecting.
  • quote-get - Displays a random quote from a remote file. The quote stays the same until the following day. The remote file is cached locally for convenience 😺
  • teleport / telepeek / telepick - A pair of quick functions in my .bash_aliases file for quickly jumping about. Works best if you've got a decent amount of free RAM for the cache.

cloudsurfer.sh

cloudsurfer.sh is a new script I'm writing to bring some of the customisations I store here in this repository to terminals on shared machines - where I can't modify .bashrc, for example.

It's designed to be executed in a single bash context, and leave no trace on the host machine after the customisations are applied - just in case the bash process crashes! If need be, it can also be executed in multiple separate bash processes and will bring the customisations to each one separately - without interfering with the rest of the machine.

Due to it's transient nature, cloudsurfer is bound to be more lightweight and be missing a few features of the full list that my main bin folder can provide, but the aim is to make a foreign terminal feel a bit more like home 😺

Here's a list of things it currently supports:

  • Aliases - by dynamically loading the main .bash_aliases
  • Colouring the prompt to remind you that cloudsurfer is active
  • (Got an idea of something to include? File an issue, or open a pull request!)

To use it, simply paste this into the target terminal:

   cstemp=$(mktemp); curl -o ${cstemp} -L https://goo.gl/ZTtVRq; chmod +x ${cstemp}; source ${cstemp}; rm ${cstemp}; cstemp=;

and then to drop out of cloudsurfer again:

exec bash && reset

Disclaimer

I don't own many of the tools in this repository. If you are an owner of one of these tools and I haven't linked to you, please let me know as I probably forgot.