Using an old router as a hub

Internet connection is through my Primary Router with an address of 192.168.0.1. My secondary router has an address of 192.168.0.2. It is connected to the primary router using a standard cable in one of the…

SFTP at the command line interface

Here are some helpful options when using FTP at the command line interface: Connecting to a server sftp user@domain To use a different port sftp -oPort=999 user@domain Uploading a file put file.ext Downloading a file…

SVN blame snippet for VIM

Viewing who is to blame for a portion of code under SVN in VIM, add this to your .vimrc vmap gl :!svn blame =expand(“%:p”) \| sed -n =line(“‘< ") ,=line("'>“) p Then using Visual Block,…

Starting VirtualBox as a headless server

nohup VBoxHeadless –startvm <guestvmname> & Explanation: nohup – (NoHangups) Keep the process running, even when the terminal is closed <guestvmname> – the name of the VM you wish to start & – run the process…

Searching emails in mutt

Taken from http://www.mutt.org/doc/manual/manual-4.html Many of Mutt’s commands allow you to specify a pattern to match (limit, tag-pattern, delete-pattern, etc.). There are several ways to select messages: ~A all messages ~b EXPR messages which contain EXPR…