To turn Dashboard off:
defaults write com.apple.dashboard mcx-disabled -boolean YES
To turn Dashboard on:
defaults write com.apple.dashboard mcx-disabled -boolean NO
You have to restart the Dock after making either change for it to take effect:
killall Dock
Lock the Dock to Prevent Changes to Contents
defaults write com.apple.dock contents-immutable -bool true
osascript -e 'tell application "Dock" to quit'
Unlock the dock
defaults write com.apple.dock contents-immutable -bool false
osascript -e 'tell application "Dock" to quit'
Lock the Dock to Prevent Changes in Size
defaults write com.apple.Dock size-immutable -bool yes
killall Dock
Lock the Dock’s Position on the Screen
defaults write com.apple.Dock position-immutable -bool yes
killall Dock
-
How to restore a folder that has turned into a package in OS X using File Matey
-
"Open with" cleanup:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local - domain system -domain user
Enable Screen Sharing or ARD Via SSH
/Developer/Tools/SetFile -c TVOD -t MooV [.avi moviefile]
FILE TYPE, FOR: MooV
CREATOR, FOR: TVOD
To simulate a far away server, add RTT time to the localhost device. For example if we add 100 milliseconds (which then makes 200ms ping time to localhost):
tc qdisc add dev lo root handle 1:0 netem delay 100msec
Restore it back to normal again with:
tc qdisc del dev lo root
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
Disable shadow
defaults write com.apple.screencapture disable-shadow -bool true
Change the type (jpeg, tiff og png)
defaults write com.apple.screencapture type jpeg
Restart SystemUI server
killall SystemUIServer
Longer deep sleep delay for rMBP
sudo pmset -a standbydelay 57600