Defaults

Defaults

# use a lighter text rendering style
defaults write -g AppleFontSmoothing -int 1

# disable smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false

# remove the animations for opening and closing windows
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false

# remove the animations for opening and closing Quick Look windows
defaults write -g QLPanelAnimationDuration -float 0

# don't use iCloud as the default location in save dialogs
defaults write -g NSDocumentSaveNewDocumentsToCloud -bool false

# don't show an iCloud window when opening TextEdit or Preview if syncing documents and data is enabled
defaults write -g NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false

# expand save and print dialogs by default
defaults write -g NSNavPanelExpandedStateForSaveMode -bool true
defaults write -g PMPrintingExpandedStateForPrint -bool true

# disable automatic spell checking
# this makes the Check Spelling While Typing menu item have no effect, but you can still check spelling manually with command-: and command-;
defaults write -g NSAllowContinuousSpellChecking -bool false

# don't blink the caret
# NSTextInsertionPointBlinkPeriodOff and NSTextInsertionPointBlinkPeriodOn were added in 10.9
# use `defaults write -g NSTextInsertionPointBlinkPeriod -int 999999999999` in 10.8 and earlier
# changing NSTextInsertionPointBlinkPeriod has no effect in 10.9
defaults write -g NSTextInsertionPointBlinkPeriodOff -float 0
defaults write -g NSTextInsertionPointBlinkPeriodOn -float 999999999999

# don't treat period or colon as part of words
# en_US_POSIX corresponds to the "United States (Computer)" setting that was shown in System Preferences in 10.8 and earlier
defaults write -g AppleTextBreakLocale en_US_POSIX

# display ASCII control characters in caret notation
defaults write -g NSTextShowsControlCharacters -bool true

# add a context menu item for showing the web inspector to web views
defaults write -g WebKitDeveloperExtras -bool true

# make the speed when scrolling by dragging faster
# the speed is not proportional to the tracking or scrolling speeds both of which are pretty slow by default
defaults write -g NSAutoscrollResponseMultiplier -float 3

# don't show crash report dialogs
defaults write com.apple.CrashReporter DialogType none

# don't show a warning when opening files downloaded from the Internet
# this does not disable the warnings shown when opening an application for the first time
defaults write com.apple.LaunchServices LSQuarantine -bool false

# don't verify disk images and don't run fsck on quarantined disk images
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages auto-fsck -bool true

# don't save .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

# disable Dashboard
defaults write com.apple.dashboard mcx-disabled -bool true

# hide the sidebar by default in Finder
defaults write com.apple.finder ShowSidebar -bool false

# don't open a Finder window after extracting an archive
defaults write com.apple.archiveutility dearchive-reveal-after -bool false

# don't open a Finder window after mounting a volume
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool false

# make Safari's find banners default to Contains instead of Starts With
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false

# change the default fonts in Safari
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily Georgia
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFontSize 16
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2FixedFontFamily Menlo
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFixedFontSize 14

# keep state in Safari even if "Close windows when quitting an application" is checked from System Preferences
defaults write com.apple.Safari NSQuitAlwaysKeepsWindows -bool true

# hide the sides of the drawers in full screen
defaults write net.sourceforge.skim-app.skim SKHideClosedFullScreenSidePanels -bool true

Finding keys for preferences

mdfind kMDItemContentType=public.unix-executable -onlyin /System|xargs strings 2>/dev/null|grep -E '^[a-zA-Z0-9.-]{10,80}$'|awk '!a[$0]++'|grep -i scroll
strings /Applications/iTunes.app/Contents/MacOS/iTunes|grep -E '^[[:alnum:]_.-]{10,80}$'|awk '!a[$0]++'
for f in /Applications/*.app/Contents/MacOS/*;do strings "$f" 2>/dev/null|awk '!a[$0]++'|grep -i spellchecking|sed "s/^/${f##*/} /g";done
strings /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit|grep -E '^[[:alnum:]_.:-]{10,80}$'|awk '!a[$0]++'|grep '^[A-Z]'
grep PreferenceKey -r ~/Desktop/WebKit-SVN-source/

Finding keys for preferences with gdb

http://arcticmac.home.comcast.net/~arcticmac/tutorials/gdbFindingPrefs.html

Save a file like this as /tmp/gdb:

set logging redirect
set logging file /tmp/gdboutput
set logging on
break CFPreferencesCopyAppValue
commands 1
silent
if $rdi
if $rsi
print-object [$rdi stringByAppendingFormat:@";%@",$rsi]
else
print-object [$rdi stringByAppendingString:@";--noDomain--"]
end
end
continue
end
break CFPreferencesCopyValue
commands 2
silent
if $rdi
if $rsi
print-object [$rdi stringByAppendingFormat:@";%@",$rsi]
else
print-object [$rdi stringByAppendingString:@";--noDomain--"]
end
end
continue
end
break CFPreferencesCopyMultiple
commands 3
silent
if $rdi
if $rsi
print-object [[$rdi description] stringByAppendingFormat:@";;%@",$rsi]
else
print-object [[$rdi description] stringByAppendingString:@";;--noDomain--"]
end
end
continue
end
run

Then quit iTunes, run gdb -x /tmp/gdb /Applications/iTunes.app/Contents/MacOS/iTunes, open iTunes, do something in iTunes for a while, terminate gdb by pressing C-d twice, and look at /tmp/gdboutput.