Skip to content

Instantly share code, notes, and snippets.

@midore
Created November 1, 2011 10:54
Show Gist options
  • Save midore/1330308 to your computer and use it in GitHub Desktop.
Save midore/1330308 to your computer and use it in GitHub Desktop.
#---------------------------------------------------------------------
# General user
#---------------------------------------------------------------------
myid=`id -u`
myd=`date "+%Y-%m-%d-%H-%M"`
#-------------------------
# Defaults write
#-------------------------
# defaults write -g NSQuitAlwaysKeepsWindows -bool false
#-------------------------
# Backup
#-------------------------
# launchctl bslist -j > ~/default-launch-bslist-general.txt
# launchctl list > ~/default-launchlist-general.txt
# ps -A > ~/default-current-ps-general.txt
cat /var/db/launchd.db/com.apple.launchd.peruser.$myid/overrides.plist > ~/defaults-$myid-ovverrides.txt
#-------------------------
# Blued
#-------------------------
launchctl unload -w /System/Library/LaunchAgents/com.apple.btsa.plist
launchctl unload -w /System/Library/LaunchAgents/com.apple.bluetoothUIServer.plist
#-------------------------
# cupsd
#-------------------------
# com.apple.printuitool.agent
# com.apple.printtool.agent
#-------------------------
# ScrennSharing
#-------------------------
launchctl unload -w /System/Library/LaunchAgents/com.apple.screensharing.agent.plist
#-------------------------
# RemoteDesktop
#-------------------------
# man rcd
# rcd -- Remote control daemon.
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist
#-------------------------
# iDisk, iCal
#-------------------------
launchctl unload -w /System/Library/LaunchAgents/com.apple.FileSyncAgent.iDisk.plist
launchctl unload -w /System/Library/LaunchAgents/com.apple.iCalPush.plist
#-------------------------
# mdmclient
#-------------------------
# man mdmclient
# mdmclient -- MDM (Mobile Device Management) client
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdmclient.agent.plist
#-------------------------
# ubd
#-------------------------
# man ubd
# ubd -- ubiquity daemon, part of Mobile Documents
# launchctl unload -w /System/Library/LaunchAgents/com.apple.ubd.plist
#-------------------------
# findmymac
#-------------------------
# launchctl unload -w /System/Library/LaunchAgents/com.apple.findmymacmessenger.plist
#-------------------------
# talagent
#-------------------------
# man talagent
# launchctl unload -w /System/Library/LaunchAgents/com.apple.talagent.plist
#-------------------------
# TMLaunchAgent.plist
#-------------------------
# launchctl unload -w /System/Library/LaunchAgents/com.apple.TMLaunchAgent.plist
#-------------------------
# end
#-------------------------
cat /var/db/launchd.db/com.apple.launchd.peruser.$myid/overrides.plist > $myid-ovverrides-$myd.txt
# 2011-11-14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment