A list of useful terminal commands for Mac OS X. Add these aliases to your ~/.bash_profile to use them.
alias blue="system_profiler SPBluetoothDataType"
alias wifipass="security find-generic-password -g -D \"AirPort network password\" -a"
Usage: wifipass "some wifi network name"
alias wifipow="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s"
Usage: wifipow
Note: Higher RSSI numbers are better. -60 is better than -80.
alias mdsoff="sudo mdutil -a -i off"
alias mdson="sudo mdutil -a -i on"
Usage: mdsoff (or mdson)
Note: If Activity Monitor frequently shows "mds" with high CPU usage this may help speed up your computer.
alias serve="python -m SimpleHTTPServer 1234"
Usage: serve .
Note: You can swap 1234 with the port of your choice.
alias ebp="open ~/.bash_profile"
Usage: ebp
Note: You can set your default text editor by setting the EDITOR env variable.
alias rbp='source ~/.bash_profile'
Usage: rbp
Note: Very convenient after editing your .bash_profile using the command above