fix gitignore for 1.8.4 style
add cpp snippets. iterator snipet
add ruby snippet. magic comment and shebang