Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save erikhatfield/8484511 to your computer and use it in GitHub Desktop.

Select an option

Save erikhatfield/8484511 to your computer and use it in GitHub Desktop.
i learned in drawing class... don't be afraid to erase. so i guess i'm teaching my computer to be creative? ha :)
#!/usr/bin/env bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
#SAFARI
#defaults read com.apple.Safari
#enable safari's debug menu (in addition to the more common develop menu)
defaults write com.apple.Safari IncludeInternalDebugMenu -int 1
#default webkit browsing??
defaults write com.apple.Safari.ContentPageGroupIdentifier.WebKit2PrivateBrowsingEnabled -int 1
#yes dump it all
defaults write com.apple.Safari.ContentPageGroupIdentifier.WebKit2StorageBlockingPolicy -int 1
defaults write com.apple.Safari WebKitStorageBlockingPolicy -bool true
#hell naw no more kitchen sinking.
defaults write com.apple.Safari.RegisteredSafariSyncClient -int 0
defaults write com.apple.Safari.RegisteredSafariSyncClientInSafari31Location -int 0
#ummm nah im all set thanks. just forget it already. i dont need my pron history to be etched on a monolith and launched towards alpha centurafuqme
defaults write com.apple.Safari.SearchProviderIdentifierMigratedToSystemPreference -int 0
defaults write com.apple.Safari.ContentPageGroupIdentifier.WebKit2UsesPageCache -int 0
#PHOTOBOOTH use:
#defaults read com.apple.PhotoBooth
#enable photobooth debug menu
defaults write com.apple.PhotoBooth EnableDebugMenu -int 1
###############################################################################
# Kill affected applications #
###############################################################################
for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "Dock" \
"Finder" "Mail" "Messages" "Safari" "SystemUIServer" "Terminal" \
"Photo Booth" "Twitter" "iCal"; do
killall "${app}" > /dev/null 2>&1
done
echo "Done. Note that some of these changes require a logout/restart to take effect."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment