Locations of startup items

~/Library/LaunchAgents
/System/Library/LaunchAgents/
/System/Library/LaunchDaemons/
/Library/LaunchAgents/
/Library/LaunchDaemons/

__Running `launchctl list` show you what launch scripts are currently loaded.__

Hide desktop icons

defaults write com.apple.finder CreateDesktop -bool false
killall Finder

Auto-hide other windows on dock switch

defaults write com.apple.dock single-app -bool TRUE
killall Dock

defaults delete com.apple.dock single-app
killall Dock

Flush DNS

killall -HUP mDNSResponder   # 10.8+
dscacheutil -flushcache      # 10.7 below

Turn off spotlight

sudo vim /etc/hostconfig  # change SPOTLIGHT=-YES- to SPOTLIGHT=-NO-
mdutil -i off /

Turn on/off proxy

sudo networksetup -setsocksfirewallproxystate Wi-Fi off
sudo networksetup -setsocksfirewallproxystate Ethernet off
sudo networksetup -setsocksfirewallproxy Wi-Fi 127.0.0.1 9999
sudo networksetup -setsocksfirewallproxy Ethernet 127.0.0.1 9999
sudo networksetup -setsocksfirewallproxystate Wi-Fi on
sudo networksetup -setsocksfirewallproxystate Ethernet on

System utils

Useful utils

INFO: brew (link) is highly recommended utility

0 Comments for this cheatsheet. Write yours!