Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save organicaudio/2072238371ae4a174c85 to your computer and use it in GitHub Desktop.
Save organicaudio/2072238371ae4a174c85 to your computer and use it in GitHub Desktop.
Disabling OSX Yosemite annoyances / features I have no use of
# Tested on OSX Yosemite 10.10.4
# XXX TODO
# should I disable com.google.Keystone.Agent ??
# http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/
# Stop DS_Store file creation on network connections
# restart Finder afterwards
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
killall Finder
# Disable / Enable Dashboard
# Settings / Mission control / Dashboard (selector) - Off
# or
# completely disable:
defaults write com.apple.dashboard mcx-disabled -boolean YES; killall Dock
# enable again:
#defaults write com.apple.dashboard mcx-disabled -boolean NO; killall Dock
# remove adobe auto update helper (i only have acrobat installed, so running this on adobe cc instalation could damage it)
# not tested
cd /Library/LaunchDaemons
launchctl remove `basename com.adobe.ARM* .plist`
sudo rm com.adobe.ARM*
cd /Library/LaunchAgents
launchctl remove `basename com.adobe.ARM* .plist`
sudo rm com.adobe.ARM*
# disable sending of crash reports to Apple (SubmitDiagInfo)
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.SubmitDiagInfo.plist
# disable photolibraryd
# com.apple.photomoments.xpc tries to access the internet without any reason and authorisation
# photos.app stops working after this
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.photolibraryd
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.cloudphotosd
# after restart they show up here
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.photolibraryd.plist
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.cloudphotosd.plist
# disable Apple Push Notification Service (apsd)
# FaceTime could complain
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.apsd.plist
# disable gamed
# make sure to log out from game center
sudo defaults write /System/Library/LaunchAgents/com.apple.gamed Disabled -bool true
# # SYSTEM TWEAKS
# Disable sleepimage & hibernate mode
sudo rm /private/var/vm/sleepimage
# ^^ deletes file
sudo pmset -a hibernatemode 0
# ^^ disables hibernate mode
pmset -g | grep hibernatemode
# ^^shows you its not on
# # Finder Tweaks
#
# Shows All Files in Finder
sudo defaults write com.apple.finder AppleShowAllFiles YES; killall Finder
# Gives finder a Quit menu item
sudo defaults write com.apple.Finder QuitMenuItem -bool YES; killall Finder
# cant remember what this one is for
sudo defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES; killall Finder
# DISKUTIL DEBUG MENU
# dont have it running!
sudo defaults write com.apple.DiskUtility DUDebugMenuEnabled 1
# TIME MACHINE LOCAL BACKUP
sudo tmutil disablelocal
# disables it
sudo tmutil enablelocal
# enables the darn thing
# # MAINTENANCE TASKS
#
# deleting ASL log files (sometimes the folder gets huge for NO reason)
sudo rm -f /private/var/log/asl/*.asl
# Clear dyld cache (sometimes the folder gets huge for NO reason)
sudo update_dyld_shared_cache -force
# Force Spotlight to Reindex
sudo rm -rf /.Spotlight-V100; sudo rm -rf /.Spotlight-V200; sudo mdutil -i off /; sudo mdutil -i on /; sudo mdutil -E /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment