# macOS

# Dark Menubar and Dock but overall Light Theme.

  1. System Preferences, then set the theme to LIGHT, then run
  2. defaults write -g NSRequiresAquaSystemAppearance -bool Yes
  3. Logout, then System Preferences, then set the theme to DARK.

Reset back to the default theme.
defaults write -g NSRequiresAquaSystemAppearance -bool No

# Disable Dock Auto Hide Animation

defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock

Reset Back to Default
defaults delete com.apple.dock autohide-time-modifier;killall Dock

# Clean up the "Open With" Menu

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

# Flush DNS Cache

sudo dscacheutil -flushcache

# Backup Mail Autocomplete Database

Copy Mail's autocomplete database to a new Mac. Via MacWorld

  1. Go to the folder "~/Library/Application Support/AddressBook/"
  2. Get the file "MailRecents-v4.abcdmr"

# Block Sites

sudo nano /etc/hosts

Add siteToBlock.com
Save > Exit (CTRL + x > y)

# References