1
0
Fork 0
bin/README.md

89 lines
7.2 KiB
Markdown
Raw Permalink Normal View History

2015-12-11 10:45:30 +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):
2015-12-11 19:14:50 +00:00
- [style](https://github.com/LuRsT/style) - Add style to your output
2015-12-11 10:45:30 +00:00
- [hr](https://github.com/LuRsT/hr) - A horizontal ruler for your terminal
- [dropbox_uploader.sh](https://github.com/andreafabrizi/Dropbox-Uploader) - 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.
2016-03-21 19:56:00 +00:00
- [speedtest-cli](https://github.com/sivel/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.
2016-03-21 19:58:47 +00:00
- [transfer](https://transfer.sh/) - 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.
2016-05-02 16:48:50 +00:00
- [xidel](http://www.videlibri.de/xidel.html) - A (what looks like) a brilliant html extraction tool. Supports various selector languages.
- [micro](https://github.com/zyedidia/micro) - A new (experimental) terminal-based text editor.
2016-05-04 20:16:10 +00:00
- [tig](http://jonas.nitro.dk/tig/) - A terminal-based git repository browser.
2016-05-24 18:46:53 +00:00
- backup - A script I wrote to make using Duplicity easier.
2016-05-24 18:49:08 +00:00
- genimagecomparisonframes - Another script I wrote to generate the frames for the first half of [this video](https://starbeamrainbowlabs.com/blog/images/20160525-Tessellator-Comparison.webm).
2016-06-03 17:21:27 +00:00
- [dtach](http://dtach.sourceforge.net/) - A minimal alternative to `screen` and `tmux`.
- [commacd](https://github.com/shyiko/commacd) - A faster way to move around.
2016-06-23 19:25:47 +00:00
- drop_pagecache - A quick script I wrote to drop the linux page cache.
2016-07-05 17:49:21 +00:00
- [hastebin](https://gist.github.com/flores/3670953) - A [hastebin](http://hastebin.com/) CLI.
2016-07-05 17:51:01 +00:00
- [quickshare](https://github.com/netham91/Quick-Share) - A quick way to share files via HTTP.
2016-07-23 14:45:27 +00:00
- [cscz](https://git.starbeamrainbowlabs.com/sbrl/cscz) - The one and only C# class generator. A little timesaving tool I built myself, written in C# or course :D
2016-07-31 19:08:46 +00:00
- [repren](https://github.com/jlevy/repren) - A good bulk file renaming tool.
2016-08-12 19:45:08 +00:00
- [goldilocks](http://unix.stackexchange.com/a/124460/64687) - A script that displays all of the possible terminal colours.
2016-09-12 19:25:59 +00:00
- [catimg](https://github.com/posva/catimg) - A cool script to display images in the terminal. Useful when you're sshing into servers.
2017-05-09 17:31:10 +00:00
- [tldr](http://github.com/pepa65/tldr-bash-client) - A bash client for
2016-09-12 19:25:59 +00:00
[tldr-pages](https://github.com/tldr-pages/tldr).
2016-09-12 20:05:02 +00:00
- [git ignore](https://gitignore.io/) - A really useful subcommand for git that allows you to generate ignore files automagically.
2017-01-04 14:55:14 +00:00
- organise-photos - A small bash script I wrote that organises the photos in a directory by year & month.
2017-01-05 13:38:03 +00:00
- [ogg-cover-art](https://github.com/acabal/scripts/blob/master/ogg-cover-art) - A script that adds cover art to ogg files.
2017-01-15 08:58:47 +00:00
- senddir - A small script I wrote to send whole directories over the network as a temporary thing. Uses netcat + gzip + tar.
2017-01-15 09:07:26 +00:00
- 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.
2017-02-24 18:11:25 +00:00
- 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
2017-09-23 10:18:05 +00:00
- * clip
2017-05-09 17:54:59 +00:00
- 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!
2017-05-09 17:22:39 +00:00
- sendclip - Pipes stdin to localhost:5556. Useful in conjuntion with ssh port forwarding and the tool above.
2017-05-09 17:54:59 +00:00
- serveclip - Serves the clipboard on port 5557. Doesn't close the connection automatically, sadly - pathes welcome!
2017-04-01 12:43:55 +00:00
- [shellshare](https://shellshare.net/) - A live terminal broadcasting utility.
2017-05-06 21:30:45 +00:00
- [colortrans](https://gist.github.com/MicahElliott/719710) - Convert rgb colours to xterm ones
2017-05-09 17:32:16 +00:00
- nautilus-here - A quick command that opens nautilus in the current directory. For lazy people :P
2017-05-09 17:34:45 +00:00
- ssh-retry - I forget where it came from, but this command reepeatedly calls ssh until it succeeds in connecting.
2017-09-23 10:18:05 +00:00
- 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 :smiley_cat:
2017-11-17 23:08:01 +00:00
- 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.
- [reflac](https://github.com/chungy/reflac) - Small flac recompression script
2015-12-11 10:45:30 +00:00
2017-07-07 13:40:37 +00:00
## cloudsurfer.sh
2017-07-05 12:18:48 +00:00
`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.
2017-06-09 21:01:24 +00:00
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.
2017-07-05 12:18:48 +00:00
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 :smiley_cat:
2017-06-09 21:01:24 +00:00
Here's a list of things it currently supports:
- Aliases - by dynamically loading the main `.bash_aliases`
2017-07-05 12:18:48 +00:00
- Colouring the prompt to remind you that cloudsurfer is active
2017-06-09 21:01:24 +00:00
- _(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:
```bash
2017-07-10 12:38:53 +00:00
cstemp=$(mktemp); curl -o ${cstemp} -L https://goo.gl/ZTtVRq; chmod +x ${cstemp}; source ${cstemp}; rm ${cstemp}; cstemp=;
```
2017-07-07 13:39:44 +00:00
and then to drop out of cloudsurfer again:
```bash
exec bash && reset
```
2015-12-11 10:45:30 +00:00
## 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.