don’t forget

1. ln /source/dir linktarget -s
Symbolic link to directory
2. ⌘ + shift + 4 then space
Take a screenshot of the current window
3. rake -T
List available rake tasks
4. sudo dpkg-reconfigure tzdata
Change timezone on ubuntu
5. sudo netstat -ltnp | grep ':80'
Find apache blocking processes
6. du -h --max-depth=1
Summarised disk usage of top-level nodes
7. ssh -o TCPKeepAlive=no
       -o ServerAliveInterval=15 addr
SSH with keepalive signal every 15 minutes to prevent close
8. sudo mailq
Read mail queue without acting on it for sendmail/dma
9. echo '3078/60' | bc
Command line calc
10.*/10 * * * *
   /bin/bash -l -c 'cd /var/rails/app &&
   rake task RAILS_ENV=production --silent'
Cron job for a rake task (repeat every 10 minutes)
11.rvm use 1.9.3-p125@sj309 --create
.rvmrc in app root
12.ln -s
   /var/pgsql_socket/.s.PGSQL.5432
   /tmp/.s.PGSQL.5432
Repair symbolic link to socket (stupid bsd param order) on OS X
13.git rm -r --cached public/assets
Remove a whole directory from version control but leave the files in the working copy
14.tar -czf tarball.gz subdir
Make a gzip tarball of a directory. (-cjzf for bzip)
Google Maps LatLng Lookup Device Capabilities