I use to use custom code for setting and getting cookies. Now I just use jquery.cookie, which can be found here: https://github.com/carhartl/jquery-cookie/
I've included my old cookie code below, just for historical reference :)
This is a dark theme I created for the Geshi filter module. I tried to mimic the colors of the dark theme in PHPStorm because I find that theme is very easy on the old eyeballs after staring at the screen all day.
If you have commits in your git repo that you want removed, you can use git-filter-branch, but that can be pretty slow. Perhaps you accidentally committed and pushed a password, a db dump, email addresses, etc. BFG makes it easy to clean out those files and does it ~ 10-100x faster that git-filter-branch.