Category Archives: bash

Metallica – One-liner

I use Metallica one-word song titles as hostnames on my PCs, so to easily look through my MP3s to find 1-word song titles, I used this gem:
ls * | sed -n ’s/^.. – \([^ ]*\).mp3$/\1/p’ | sort -u

Auto SSH Key

This small script (basically a one-liner) will transfer your public ssh key (if in standard ~/.ssh/id_dsa.pb) and properly set permissions to the host passed as the first argument. This makes it so the only time you need your password (if using a passphrase-less ssh-key) will be when running this script. After that, you [...]

FTP Sync

This script is useful to mirror a directory over FTP. I find this useful when I am working on web changes on an account I do not have SSH access or VIM. I have plans to add getopt support for more functionality. As of now, most of it is controlled via the [...]