OS X - List folder and sizes ordered by size

I had to see what was taking up so much space on my MacBook Air since I only had 1GB free on my SSD. Just open the terminal and invoke this to list all folders that are bigger than 500MB, ordered by size.

$ du -m * | awk '$1 > 500' | sort -nr

In my case, it was a tmp build of iOS Simulator 6.1. It was 47GB…