imported from http://nemesis.thewavelength.net/index.php?p=35
added gitignore