Archive for May, 2011

May 21, 2011 0

Secure browsing with an SSH port-forwarding socks proxy

When we’re browsing the web from a public place we’d like to ensure all our traffic travels over an encrypted channel. W can accomplish this easily with an SSH based proxy. You’re going to need a shell (SSH) account on a remote server. The following process will work on *nix and OSX and probably other [...]

Tags:

May 16, 2011 0

Keep track of your dynamic IP with wget, sendEmail, and cron

If you need to access your machine remotely and have a dynamic public IP (like me), you may find this system handy. We’re going to write a script which determines your IP and emails it to you every day via a cronjob. For simplicity we’re going to use GMail’s servers to send the email, so [...]

Tags:

May 12, 2011 1

Use vim bindings in bash / terminal

Once you really get used to using vim, you start wanting everything to work like it. Fortunately there is an easy way to enable vim bindings in your terminal. set -o vi To make this change permanent, you can add it to your .bashrc (or .bash_profile) with: echo "set -o vi" >> ~/.bashrc This change [...]

Tags:

May 2, 2011 1

Fish-style prompt for bash

In search of a more minimalistic bash prompt, I ran across this great one-liner for creating a fish-esque prompt for bash. This prompt only displays the first letter of each directory above your current one, and the full name of the current directory. For example, if I were in: ~/projects/conjurecon/httpdocs/images it would display: ~/p/c/h/images$ Give [...]

Tags:

Dedicated Server Hosting by Hivelocity