defaults write com.apple.dashboard devmode YES
This is actually a pain in the as since has to be done for each application.
i.e.: Telegram:
defaults write com.tdesktop.Telegram NSQuitAlwaysKeepsWindows -bool false
Your can actually list all applications by running defaults domains
or look for a specific bundle name by using this nasty, but useful, oneliner:
0 ✓ steve@hal9000 ~ $ function findbundle() { defaults find $1 | awk -F '"bundle-identifier" = "' '{print $2}' | tr -d '";' | grep -i $1 ; }
0 ✓ steve@hal9000 ~ $ findbundle iterm
com.googlecode.iterm2
0 ✓ steve@hal9000 ~ $
Show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles TRUE
Or simply use Shift+Command+.
on Finder.
This one may be usefull when facing RAM issues:
defaults write com.apple.dashboard mcx-disabled -boolean YES; killall Dock
defaults write com.apple.LaunchServices LSQuarantine -bool NO