Skip to content

Latest commit

 

History

History
90 lines (48 loc) · 2.34 KB

MacOSX.md

File metadata and controls

90 lines (48 loc) · 2.34 KB

Dashboard

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

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

Finder

Sharing

Enable Screen Sharing or ARD Via SSH

Adding DivX/Xvid etc. into iTunes

/Developer/Tools/SetFile -c TVOD -t MooV [.avi moviefile]

FILE TYPE, FOR: MooV
CREATOR, FOR: TVOD

Add latency to localhost

Link

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

Lion

Turn off zooming windows

defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO

Screenshots

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