Tom’s useful *nix commands

List directories of a directory, sorted by human readable size

du -hs ./* | sort -hr

Show hidden files in Finder in OS X

defaults write AppleShowAllFiles TRUE

Ctrl-Alt click finder icon and click Relaunch

Restart Mac OS X Sound Server Coreaudio

sudo killall coreaudiod

Install composer system wide

curl -sS | php
sudo mv composer.phar /usr/local/bin/composer