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.

Revisions

  1. midore revised this gist Oct 11, 2012. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -83,3 +83,7 @@ launchctl unload -w /System/Library/LaunchAgents/com.apple.mdmclient.agent.plist
    # end
    #-------------------------
    cat /var/db/launchd.db/com.apple.launchd.peruser.$myid/overrides.plist > $myid-ovverrides-$myd.txt


    # 2011-11-14

  2. midore revised this gist Nov 14, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ myd=`date "+%Y-%m-%d-%H-%M"`
    #-------------------------
    # Defaults write
    #-------------------------
    defaults write -g NSQuitAlwaysKeepsWindows -bool false
    # defaults write -g NSQuitAlwaysKeepsWindows -bool false

    #-------------------------
    # Backup
  3. midore created this gist Nov 1, 2011.
    85 changes: 85 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,85 @@

    #---------------------------------------------------------------------
    # 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