Friday, August 12, 2016

Reset your Chrome sync

If you want to stop your Google Account from syncing to Chrome altogether, or if you want to remove your data from Google servers, you can reset sync.

To stop syncing and clear your synced data or reset a sync passphrase, follow these steps:
  1. Open your Google Dashboard. Make sure you are signed in to your Google Account.
  2. Click Reset sync to stop syncing and clear all of your synced data.
  3. Click OK.
Note: You only need to do this once. It will stop sync on all of your devices and remove your synced data from your Google Account. However, your data will still be available in Chrome on your device(s). If you sign in to Chrome on a device again, the data on that device will sync to your account again.

Sunday, August 7, 2016

Disable Developer Search Results in Spotlight on OSX

We’ll just need to trick Spotlight into thinking you have Xcode installed. To do this, open a Terminal window. Press Command+Space, type Terminal, and press Enter to launch a terminal window from Spotlight. You can also open a Finder window, click “Applications” in the sidebar, double-click the “Utilities” folder, and then double-click the “Terminal” shortcut.
Type the following two commands into the terminal window, pressing Enter after each to run them:
cd /Applications
touch Xcode.app
This creates an empty file named Xcode.app in your Applications folder. It doesn’t take up any space, and it doesn’t do anything. You’ll see it in your Applications folder, although you won’t be able to launch or do anything with it.
You can now reopen the Spotlight pane in System Preferences. With a file named Xcode.app present, it will show you the “Developer” checkbox and you can uncheck it, removing the Developer search results from your Spotlight searches.
Don’t delete the empty Xcode.app file later — you’ll need to leave it there. If you reopen the Spotlight preferences panel after deleting the Xcode.app, it seems to re-enable Developer searches in Spotlight again.

Wednesday, August 3, 2016

Disable OSX Services

Services

Before you connect to the Internet, you may wish to disable some Apple services which phone home to Apple (https://github.com/fix-macosx/yosemite-phone-home).
Services on OS X are managed by launchd. See http://launchd.info/, as well as Apple's Daemons and Services Programming Guide and Technical Note TN2083
Here are the basics:
  • Use launchctl list to view loaded user agents
  • Use sudo launchctl list to view loaded system daemons
  • Specify the service name to examine it, e.g. launchctl list com.apple.Maps.mapspushd
  • Use defaults read to examine job plists in /System/Library/LaunchDaemons and /System/Library/LaunchAgents
  • Use manstrings and Google to learn about what the agent/daemon runs
For example, to learn what a system launch daemon or agent does, start with
defaults read /System/Library/LaunchDaemons/com.apple.apsd.plist
Look at the ProgramArguments section to see which binary is run, in this case apsd. To find more information about that, look at the man page with man apsd
If you're not interested in Apple Push Notifications, disable the service
sudo launchctl unload -w \
  /System/Library/LaunchDaemons/com.apple.apsd.plist
Here's an example of disabling a bunch of user launch agents,
function disable_agent {
  echo "Disabling ${1}"
  launchctl unload -w /System/Library/LaunchAgents/${1}.plist
}

disable_agent com.apple.AddressBook.SourceSync
disable_agent com.apple.AirPlayUIAgent
disable_agent com.apple.AOSHeartbeat
disable_agent com.apple.AOSPushRelay
disable_agent com.apple.bird
disable_agent com.apple.CalendarAgent
disable_agent com.apple.CallHistoryPluginHelper
disable_agent com.apple.CallHistorySyncHelper
disable_agent com.apple.cloudd
disable_agent com.apple.cloudfamilyrestrictionsd-mac
disable_agent com.apple.cloudpaird
disable_agent com.apple.cloudphotosd
disable_agent com.apple.CoreLocationAgent
disable_agent com.apple.coreservices.appleid.authentication
disable_agent com.apple.EscrowSecurityAlert
disable_agent com.apple.findmymacmessenger
disable_agent com.apple.gamed
disable_agent com.apple.helpd
disable_agent com.apple.icloud.fmfd
disable_agent com.apple.idsremoteurlconnectionagent
disable_agent com.apple.imagent
disable_agent com.apple.IMLoggingAgent
disable_agent com.apple.locationmenu
disable_agent com.apple.notificationcenterui
disable_agent com.apple.pbs
disable_agent com.apple.rtcreportingd
disable_agent com.apple.SafariCloudHistoryPushAgent
disable_agent com.apple.safaridavclient
disable_agent com.apple.SafariNotificationAgent
disable_agent com.apple.security.cloudkeychainproxy
disable_agent com.apple.SocialPushAgent
disable_agent com.apple.syncdefaultsd
disable_agent com.apple.telephonyutilities.callservicesd
And the same for system launch daemons,
function disable_daemon {
  echo "Disabling ${1}"
  sudo launchctl unload -w /System/Library/LaunchDaemons/${1}.plist
}

disable_daemon com.apple.apsd
disable_daemon com.apple.AssetCacheLocatorService
disable_daemon com.apple.awacsd
disable_daemon com.apple.awdd
disable_daemon com.apple.CrashReporterSupportHelper
disable_daemon com.apple.GameController.gamecontrollerd
disable_daemon com.apple.SubmitDiagInfo
disable_daemon com.apple.TMCacheDelete


Be careful about disabling any services you don't understand, as it may render your system unbootable.