Most of it ripped from mathiasbynens/dotfiles.