alt + shift + k
Fish shell
Make fish default shell
echo /usr/local/bin/fish >>/etc/shells
chsh -s /usr/local/bin/fish
Force empty Trash
sudo rm -rf ~/.Trash/*
Clear Cache
open $TMPDIR../C/
Screen resolution
system_profiler SPDisplaysDataType | grep Resolution
Disable Reportcrash
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.DiagnosticReportCleanUp.plist
Dropbox : Get Multiple Account Support
HOME=$HOME/Dropbox-Second /Applications/Dropbox.app/Contents/MacOS/Dropbox &
TCP port on Mac OS X
sudo lsof -i -n -P | grep TCP
Default Shell
cat /etc/shells
chsh -s /usr/local/bin/zsh
Auto start
cp /usr/local/Cellar/php56/5.6.11_2/homebrew.mxcl.php56.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
Check sure PHP-FPM is listening on port 9000:
lsof -Pni4 | grep LISTEN | grep php