One-liners
Quick pi-dns.me setup
Enter this one-liner into a BASH prompt, and it will generate a random string of 16 characters, create the name with pi-dns.me, update your current IP and make a cron entry to update it every 15 minutes.
qrlink function
If you're like me and want to access a URL on your phone because you're signed into different accounts on your phone vs your main computer, you might find this useful.
Add ssht to Linux
A quick one-liner to add a binary file that will launch tmux automatically upon an SSH connection.
Add GitHub SSH keys to authorized_user file
If you have an SSH key you regularly use elsewhere added to your GitHub account, this one-liner to get those public keys and add them to the `~/.ssh/authorized_keys` file of your current machine.
Disable IPv6 in Ubuntu 14.04 or 16.04
If you'd like to disable IPv6 for whatever reason on Ubuntu 14.04 or 16.04, give this one-liner a go.
Update a standalone ESXi server
Even though it's not the proper way to do it in production, sometimes it's just nice to be able to update ESXi from SSH, especially an individual instance at home or in a lab.
Reset authorized_keys permissions
Sometimes, you might find you are having odd issues using public keys on a Linux server. It will fix any permissions issues that you might have caused by editing the files incorrectly.
Generate SSH key
A quick one-liner to generate a secure SSH key in Bash.