This Privacy & Security Guide is for the person who does not use iCloud, App Store and Siri on macOS.
The best way to achieve this guide is to start fresh with a clean installation of macOS.
It is recommended to reinstall macOS every 3 – 6 months.

Preparation
Backup any files you want to keep by dragging manually to a Usb Flash Drive / SD Card / External Hard Drive or you can clone your hard drive either through Apple’s Disk Utility or Carbon Copy Cloner.

Installation
Create a Bootable Installer
Download macOS from the Mac App Store. It will go in your Applications folder.
Use at least an 8GB Usb Flash Drive / SD Card / External Hard Drive
Erase the Usb drive In Disk Utility. Name it “Untitled”
Mac OS Extended Journaled – Guid Partition Map

sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/Untitled –applicationpath /Applications/Install\ macOS\ High\ Sierra.app

When its done, restart & hold the option key.
Open disk utility and reformat the drive with Mac OS Extended Journaled – Guid Partition Map
Install macOS and when it is done it will prompt you to setup wifi, log in to iCloud and make a new user account.
Do not use your name for the account username and do not make a password hint. Use something generic like “user”.
Do not connect to wifi during the setup, choose connect later and skip through the iCloud login prompt.
Make sure location, analytics and anything else are disabled.
Not logging in to wifi and iCloud is key during setup.

Now you are on the desktop of your fresh installation. Follow this guide in order from top to bottom.

System Preferences
General – 0 Recent Items, Disable Allow Handoff
Security & Privacy – Disable Automatic Login, Firewall On, Disable Automatically Allow Built In & Downloaded Signed Software To Receive Incoming Connections, Stealth Mode On, Advanced, Require Admin Password For Each System Preference, Disable Infrared, Location Services Off, Analytics Off
Spotlight – Allow Spotlight Suggestions In Look Up Off
Keyboard – Dictation Off, Line In
Trackpad – Silent Clicking On
Sound – User Interface Sound Effects Off, Volume Feedback Off, Internal Microphone Input Volume Off, Input Select Line In
iCloud – Not Logged In
App Store – Disable Auto Check For Updates, Disable Auto Updating, Purchases Require Password, Free Downloads Require Password
Network – Require Administrator Authorization To Create Computer To Computer Networks
Bluetooth – Off – If using Bluetooth temporarily, turn off after done using.
Sharing – Computer Name – Rename to “User” instead of “User’s MacBook Pro”. All Sharing Services Off, File Sharing – Delete Public Folder, Bluetooth Sharing, When Other Devices Browse Never Allow
Users & Groups – Auto Login Off, Display As Name & Password, Guest User Off
Siri – Off, Voice Feedback Off, Siri Suggestions & Privacy, Disable All Apps
Time Machine – Off

Disable System Integrity Protection (Rootless)
Restart in recovery mode with your bootable macOS installer.
In recovery mode Terminal
csrutil disable
Successful, restart back into macOS

Terminal – Enable Secure Keyboard Entry

Disable AirDrop – defaults write com.apple.NetworkBrowser DisableAirDrop -bool yes
Disable Remote Disc – sudo defaults write /Library/Preferences/com.apple.NetworkBrowser EnableODiskBrowsing -bool false
killall Finder
sudo defaults write com.apple.NetworkBrowser EnableODiskBrowsing -bool false
killall Finder
Save To Disk By Default – defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool no
Disable Go To Folder In Go Menu – defaults write com.apple.finder ProhibitGoToFolder -bool true
killall Finder
Check Bonjour Multicast Advertisements – /usr/bin/sudo /usr/bin/defaults read /Library/Preferences/com.apple.mDNSResponder | /usr/bin/grep NoMulticastAdvertisements
Disable Bonjour Multicast Advertisements – /usr/bin/sudo /usr/bin/defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool yes
Check Forward Source Routed Packets – sysctl net.inet.ip.sourceroute
Disable Forward Source Routed Packets – Add net.inet.ip.sourceroute=0 To /etc/sysctl.conf
Check ICMP Timestamp Requests – sysctl net.inet.icmp.timestamp
Disable ICMP Timestamp Requests – net.inet.icmp.timestamp=0
Check Security Assessments – /usr/bin/sudo /usr/sbin/spctl –status | /usr/bin/grep enabled
Enable Security Assessments – /usr/bin/sudo /usr/sbin/spctl –master-enable
Check Remote Apple Events – /usr/bin/sudo /bin/launchctl print-disabled system | /usr/bin/grep com.apple.AEServer
Disable Remote Apple Events – /usr/bin/sudo /bin/launchctl disable system/com.apple.AEServer
Check Telnet – /usr/bin/sudo /bin/launchctl print-disabled system | /usr/bin/grep com.apple.telnetd
Disable Telnet – /usr/bin/sudo /bin/launchctl disable system/com.apple.telnetd
Check Sending Diagnostics & Usage Data To Apple – /usr/bin/sudo /usr/sbin/system_profiler SPConfigurationProfileDataType | /usr/bin/grep AutoSubmit
Disable Sending Diagnostics & Usage Data To Apple –
/usr/bin/defaults read “/Library/Application Support/CrashReporter/DiagnosticMessagesHistory.plist” AutoSubmit
/usr/bin/sudo /usr/bin/defaults write “/Library/Application Support/CrashReporter/DiagnosticMessagesHistory.plist” AutoSubmit -bool false
/usr/bin/sudo /bin/chmod 644 /Library/Application\ Support/CrashReporter/DiagnosticMessagesHistory.plist
/usr/bin/sudo /usr/bin/chgrp admin /Library/Application\ Support/CrashReporter/DiagnosticMessagesHistory.plist
Disable Crash Reporter – sudo defaults write com.apple.CrashReporter DialogType none
Disable Captive Control – sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control Active -bool false
Delete Captive Control – sudo rm -rf /System/Library/CoreServices/Captive\ Network\ Assistant.app

Root Password
dsenableroot
Enter your user password then create a root password, enter it twice as prompted.
Successfully enabled root user.
Then disable it.
dsenableroot -d
Successfully disabled root user.

Firmware Password
This step is optional, only needed for physical security of your computer.
Set Firmware Password
sudo firmwarepasswd -setpasswd
Check Firmware Password
sudo firmwarepasswd -check
Verify Correct Password
sudo firmwarepasswd -verify
Delete Firmware Password
sudo firmwarepasswd -delete

Connect To Wifi & Install Updates
Check for any system updates in the App Store. You do not need to log in to the App Store for installing system updates.

Cleaning macOS
Most of these folders are empty. The ones that aren’t are desktop photos, useless modem scripts, photo screensavers and user icons.
Library
Delete Automator (Empty) – sudo rm -rf /library/automator
Delete Color Pickers (Empty) – sudo rm -rf /library/colorpickers
Delete Components (Empty) – sudo rm -rf /library/components
Delete Compositions (Empty) – sudo rm -rf /library/compositions
Delete Contextual Menu Items (Empty) – sudo rm -rf /library/contextual\ menu\ items
Delete Desktop Pictures – sudo rm -rf /library/desktop\ pictures
Delete Directory Services (Empty) – sudo rm -rf /library/directoryservices
Delete Graphics (Empty) – sudo rm -rf /library/graphics
Delete Gpu Bundles (Empty) – sudo rm -rf /library/gpubundles
Delete iChat Icons – sudo rm -rf /library/application\ support/apple/ichat\ icons
Delete Input Methods (Empty) – sudo rm -rf /library/input\ methods
Delete Internet Plugins – sudo rm -rf /library/internet\ plug-ins
Delete Java (Empty) – sudo rm -rf /library/java
Delete Keyboard Layouts (Empty) – sudo rm -rf /library/keyboard\ layouts
Delete Modem Scripts – sudo rm -rf /library/modem\ scripts
Delete Open Directory – sudo rm -rf /library/opendirectory
Delete Photo Screen Savers – sudo rm -rf /library/screen\ savers
Delete Speech (Empty) – sudo rm -rf /library/speech
Delete System Profiler (Empty) – sudo rm -rf /library/systemprofiler
Delete User Pictures – sudo rm -rf /library/user\ pictures
User Library
Delete Assistants (Empty) – sudo rm -rf /users/user/library/assistants
Delete Audio (Empty) – sudo rm -rf /users/user/library/audio
Delete Call Services (Empty) – sudo rm -rf /users/user/library/callservices
Delete Color Pickers (Empty) – sudo rm -rf /users/user/library/colorpickers
Delete Compositions (Empty) – sudo rm -rf /users/user/library/compositions
Delete Core Follow Up (Empty) – sudo rm -rf /users/user/library/corefollowup
Delete Favorites (Empty) – sudo rm -rf /users/user/library/favorites
Delete File Provider (Empty) – sudo rm -rf /users/user/library/fileprovider
Delete Gamekit (Empty) – sudo rm -rf /users/user/library/gamekit
Delete iMovie (Empty) – sudo rm -rf /users/user/library/imovie
Delete Input Methods (Empty) – sudo rm -rf /users/user/library/input\ methods
Delete Internal (Empty) – sudo rm -rf /users/user/library/com.apple.internal.ck
Delete Internet Plugins (Empty) – sudo rm -rf /users/user/library/internet\ plug-ins
Delete Keyboard Layouts (Empty) – sudo rm -rf /users/user/library/keyboard\ layouts
Delete Preference Panes (Empty) – sudo rm -rf /users/user/library/preferencepanes
Delete Pubsub (Empty) – sudo rm -rf /users/user/library/pubsub
Delete Safari (Empty) – sudo rm -rf /users/user/library/safari
Delete Safari Safe Browsing (Empty) – sudo rm -rf /users/user/library/safarisafebrowsing
Delete Screen Savers (Empty) – sudo rm -rf /users/user/library/screen\ savers
Delete Services (Empty) – sudo rm -rf /users/user/library/services
Delete Sharing (Empty) – sudo rm -rf /users/user/library/sharing
Delete Sounds (Empty) – sudo rm -rf /users/user/library/sounds
Delete Voices (Empty) – sudo rm -rf /users/user/library/voices
Delete Widgets (Empty) – sudo rm -rf /users/user/library/widgets

Delete Siri
Delete Siri Application
sudo rm -rf /applications/siri.app
Delete Preference Pane
sudo rm -rf /system/library/preferencepanes/speech.prefpane
Private
sudo rm -rf /usr/libexec/siriknowledged
Delete Cloud Kits Notifier
sudo rm -rf /system/library/accounts/notification/siricloudkitaccountsnotifier.bundle
Delete System Assistant
sudo rm -rf /system/library/assistant/uiplugins
Delete Core Services
sudo rm -rf /system/library/coreservices/siri.app
sudo rm -rf /system/library/coreservices/siri.bundle
Delete Launch Agents
sudo rm -rf /system/library/launchagents/com.apple.siri.agent.plist
sudo rm -rf /system/library/launchagents/com.apple.siriknowledged.plist
sudo rm -rf /system/library/launchagents/com.apple.assistantd.plist
Delete On Boarding Bundles
sudo rm -rf /system/library/onboardingbundles/com.apple.onboarding.siri.bundle
sudo rm -rf /system/library/onboardingbundles/com.apple.onboarding.sirisuggestions.bundle
Delete Private Frameworks
sudo rm -rf /system/library/privateframeworks/siriclientflow.framework
sudo rm -rf /system/library/privateframeworks/siricore.framework
sudo rm -rf /system/library/privateframeworks/sirifoundation.framework
sudo rm -rf /system/library/privateframeworks/siritasks.framework
sudo rm -rf /system/library/privateframeworks/siritts.framework
sudo rm -rf /system/library/privateframeworks/siriui.framework
sudo rm -rf /system/library/privateframeworks/distributedevaluation.framework/versions/a/xpcservices/com.apple.siri-distributed-evaluation.xpc
Delete Sandbox Profiles
sudo rm -rf /system/library/sandbox/profiles/com.apple.siri.ClientFlow.ClientScripter.sb
Delete Developer Frameworks
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/siriclientflow.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/siricore.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/sirifoundation.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/siritasks.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/siritts.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/siriui.framework
Delete User Assistant
sudo rm -rf /users/user/library/assistant
Delete Application Scripts
sudo rm -rf /users/user/library/application\ scripts/com.apple.siri
sudo rm -rf /users/user/library/application\ scripts/com.apple.siri.media-indexer
sudo rm -rf /users/user/library/application\ scripts/com.apple.sirincservice
Delete Containers
sudo rm -rf /users/user/library/containers/com.apple.siri
sudo rm -rf /users/user/library/containers/com.apple.siri.media-indexer
sudo rm -rf /users/user/library/containers/com.apple.siri.siritodayextension
sudo rm -rf /users/user/library/containers/com.apple.sirincservice
Delete Preferences
sudo rm -rf /users/user/library/preferences/com.apple.siri.context.service.plist
sudo rm -rf /users/user/library/preferences/com.apple.siri.plist
sudo rm -rf /users/user/library/preferences/com.apple.siricore.fides.plist

Delete Remote Control Daemon
*Notice – If you delete siri you will need to delete this as pressing an itunes key on the keyboard like play, rewind or fast forward will trigger a crash pop up that will keep reappearing until you restart your computer which after restarting if you press either of those keys again, you will trigger it again.*
sudo rm -rf /system/library/coreservices/rcd.app

Delete Feedback Assistant
sudo rm -rf /system/library/coreservices/applications/feedback\ assistant.app

Delete Reporting Agents
*Notice – Do not delete /system/library/privateframeworks/coreanalytics.framework If you do the system will not boot up and you will need to get the file back.*
sudo rm -rf /system/library/coreservices/crashreportersupporthelper
sudo rm -rf /system/library/coreservices/diagnostics_agent
sudo rm -rf /system/library/coreservices/googlesyncmigrate
sudo rm -rf /system/library/coreservices/osanalyticshelper
sudo rm -rf /system/library/coreservices/problem\ reporter.app
sudo rm -rf /system/library/coreservices/processpanicreport
sudo rm -rf /system/library/coreservices/reportcrash
sudo rm -rf /system/library/coreservices/reportpanic.app
sudo rm -rf /system/library/coreservices/reportpanicservice
sudo rm -rf /system/library/coreservices/submitdiaginfo
sudo rm -rf /system/library/launchdaemons/com.apple.analyticsd.plist
sudo rm -rf /system/library/onboardingbundles/com.apple.onboarding.analyticsapp.bundle
sudo rm -rf /system/library/onboardingbundles/com.apple.onboarding.analyticsdevice.bundle
sudo rm -rf /system/library/onboardingbundles/com.apple.onboarding.analyticsicloud.bundle
sudo rm -rf /system/library/privateframeworks/osanalytics.framework

Delete Notification Center Widgets
sudo rm -rf /system/library/coreservices/nowplayingtouchui.app
sudo rm -rf /system/library/coreservices/nowplayingwidgetcontainer.app
sudo rm -rf /system/library/coreservices/socialpushagent.app
sudo rm -rf /system/library/coreservices/stocks.app
sudo rm -rf /system/library/frameworks/notificationcenter.framework/plugIns/com.apple.ncplugin.calculator.appex
sudo rm -rf /system/library/frameworks/notificationcenter.framework/plugIns/com.apple.ncplugin.findmyfriends.appex
sudo rm -rf /system/library/frameworks/notificationcenter.framework/plugIns/com.apple.ncplugin.worldclock.appex

Delete Time Machine
*Notice – Do not delete /system/library/privateframeworks/timemachine.framework If you do when you go to restart finder won’t load anymore and you will need to get the file back.*
Delete Time Machine Application
sudo rm -rf /applications/time\ machine.app
Delete Preference Pane
sudo rm -rf /system/library/preferencepanes/timemachine.prefpane
Delete Private Frameworks
sudo rm -rf /system/library/privateframeworks/diagnosticextensions.framework/plugins/osx-timemachine.appex
sudo rm -rf /system/library/privateframeworks/backup.framework/versions/a/resources/timemachinebutton.car
sudo rm -rf /system/library/privateframeworks/systemmigration.framework/versions/a/resources/base.lproj/timemachine.icns
Delete Menu
sudo rm -rf /system/library/coreservices/menu\ extras/timemachine.menu
Delete Launch Daemon Preferences
sudo rm -rf /system/library/launchdaemons/com.apple.diagnosticextensions.osx.timemachine.helper.plist
Delete Plugin
sudo rm -rf /system/library/usereventplugins/com.apple.timemachine.plugin
sudo rm -rf /system/library/usereventplugins/timemachineueaplugin.plugin
Delete Developer Framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/timemachine.framework

Delete Airplay Agent
*Notice – The process is always running even if your not using Airplay.*
This is not possible to fully remove because it will disable the volume, wifi, notification center, spotlight search and possibly more menubar items. The best way is to remove just these items here that are tested safe to delete.
sudo rm -rf /users/user/library/application\ scripts/com.apple.airplayuiagent
sudo rm -rf /users/user/library/containers/com.apple.airplayuiagent
Delete Developer Frameworks
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/airplayreceiver.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/airplaysender.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/system/library/privateframeworks/airplaysupport.framework
sudo rm -rf /library/developer/commandlinetools/sdks/macosx.sdk/usr/share/man/man8/airPlaydiagnosticsserver.8

Delete Photos Agent
*Notice – Photos agent works with iCloud photo streams and shared streams. The process is always running even if your not logged in to iCloud.*
Find The Photos Agent Processor ID In Activity Monitor
kill -9 123
sudo rm -rf /system/library/coreservices/cloudphotosd.app
Find The photoanalysis Processor ID In Activity Monitor
kill -9 123
sudo rm -rf /system/library/privateframeworks/photoanalysis.framework
User Containers
sudo rm -rf /users/user/library/containers/com.apple.clouddocs.mobiledocumentsfileprovider
Find The cloudphotosconfiguration Processor ID In Activity Monitor
kill -9 123
sudo rm -rf /users/user/library/containers/com.apple.cloudphotosconfiguration
sudo rm -rf /users/user/library/containers/com.apple.cloudphotosd
sudo rm -rf /users/user/library/containers/com.apple.mediaanalysisd
sudo rm -rf /users/user/library/containers/com.apple.medialibraryservice
Find The photoanalysisd Processor ID In Activity Monitor
kill -9 123
sudo rm -rf /users/user/library/containers/com.apple.photoanalysisd
Find The photolibraryd Processor ID In Activity Monitor
kill -9 123
sudo rm -rf /users/user/library/containers/com.apple.photolibraryd

Delete Boot Camp Assistant
sudo rm -rf /applications/utilities/boot\ camp\ assistant.app

Delete Migration Assistant
sudo rm -rf /applications/utilities/migration\ assistant.app

Delete Raid Assistant
sudo rm -rf /system/library/coreservices/applications/raid\ utility.app

Delete Parental Controls
*Notice – Do not delete /system/library/privateframeworks/familycontrols.framework If you do the users system preference pane won’t load*
Delete Preference Pane
sudo rm -rf /system/library/preferencepanes/parentalcontrols.prefpane
Delete Application Support
sudo rm -rf /library/application\ support/apple/parentalcontrols
Delete Core Services
sudo rm -rf /system/library/coreservices/securityagentplugins/familycontrols.bundle
Delete Launch Agent
sudo rm -rf /system/library/launchagents/com.apple.familycontrols.useragent.plist
Delete Launch Daemon
sudo rm -rf /system/library/launchdaemons/com.apple.familycontrols.plist

Delete Touch ID
Delete Preference Pane
sudo rm -rf /system/library/preferencepanes/touchid.prefpane
Delete Configuration Profile
sudo rm -rf /system/library/configurationprofiles/plugins/touchid.profiledomainplugin
Delete Framework
sudo rm -rf /system/library/frameworks/localauthentication.framework/support/mechanismplugins/touchid_mechtouchid.bundle

Delete Wallet
Delete Preference Pane
sudo rm -rf /system/library/preferencepanes/wallet.prefpane

Disable iSight Camera – Optional
Disconnect wire if possible
sudo rm -rf /system/library/extensions/apple_isight.kext
sudo rm -rf /system/library/extensions/iousbfamily.kext/contents/plugins/appleusbvideosupport.kext

Disable Microphone – Optional
Disconnect wire if possible
*Notice – Using the software removal option may disable audio playback*
sudo rm -rf /system/library/extensions/appleusbaudio.kext
sudo rm -rf /system/library/extensions/ioaudiofamily.kext

Computer
– Backup monthly
– Make multiple backups In different formats (cd / dvd, usb flash drive, sd card, mechanical hard drive & print out physical documents & store in zippered binder)
– Encrypt minimum 256 Bit Aes
– Don’t save any password in Keychain or text file, keep hand written in a physical note pad

Finder
– Don’t reopen windows when logging back in when either logging out or shutting down
– Don’t use color tags

Internet
– Use a wireless router with a short distance detection range so neighbors cannot get your connection details
– Hide your network
– Change router radio channel
– Disable setup over wan
– Disable access control
– Disable nat port mapping protocol
– Disable file sharing
– Use ethernet cable from modem to computer with no wireless router
– Use Tor browser with a second Vpn to mask ip address
– Spoof browser & device mac address
– Don’t install Adobe Flash, DivX, Microsoft Silverlight, Oracle Java, Telestream Flip4Mac or any internet plug ins
– Check and remove yourself from all people search websites
– Check and remove yourself from the Internet Archive Wayback Machine
– Don’t store mail on mail server, delete and empty trash after done reading
– Don’t store files on cloud services
– Don’t store addresses or credit cards on websites
– Checkout as guest if possible
– Enable Login Notifications
– Don’t sign up or log in to any service with Facebook / Google or link your Facebook / Google account to them. If you do and your Facebook / Google account gets hacked then all of those websites are compromised
– Don’t bookmark websites in browser, keep links in a text file on your computer
– Don’t save passwords in browser or text file, keep hand written in a physical note pad
– Don’t store modem, router & email account passwords on your computer
– Use mixed passwords containing upper and lower case letters, numbers and symbols at least 18 characters in length or the maximum amount of characters allowed. Do not use dictionary words.
– Make sure every account has a different password
– Use jumbled disposable email addresses
– Make up bogus date of births and security questions with answers irrelevant to the questions
– Disable find user by email address and phone number on websites
– Do not link your public contact email address to any accounts online
– Before deleting any account remove as much info as you can. Enter dots, zeros and X symbols. Some accounts under country need to be set to Russia to be deleted or you need to state you do not agree with the privacy policy & terms and conditions.
– Sometimes you can use inspect elements to change settings in disabled fields
– The key is minimalism, only make an account if you really need it.
– Turn off Wifi when not using internet

Firefox / Tor About:Config
Enable Pinch To Zoom
browser.gesture.pinch.in – cmd_fullZoomReduce
browser.gesture.pinch.in.shift – cmd_fullZoomReset
browser.gesture.pinch.out – cmd_fullZoomEnlarge
browser.gesture.pinch.out.shift – cmd_fullZoomReset
Disable Local Storage
*Notice – Some websites might not load properly.*
dom.storage.enabled – Value False
Disable Tor Startup Homepage
startup.homepage_override_url – String Value – None
Disable Tor Maximize Window Warnings
extensions.torbutton.maximize_warnings_remaining – User Set – Value 0
Disable Tor Button Update Checking
extensions.torbutton.updateNeeded – Value False
extensions.torbutton.versioncheck_enabled – Value False
extensions.torbutton.versioncheck_url – String Value – None
extensions.torbutton.resize_new_windows – Value False
Disable Browser Update Checking
services.sync.prefs.sync.browser.search.update – Value False
Disable Install Signatures
xpinstall.signatures.required
Disable Extensions Update Checking
services.sync.prefs.sync.extensions.update.enabled – Value False
extensions.blocklist.url – String Value – None
extensions.shield-recipe-client.enabled – Value False
Disable Theme Updates
lightweightThemes.update.enabled – Value False
services.sync.prefs.sync.lightweightThemes.usedThemes – Value False
services.sync.prefs.sync.lightweightThemes.selectedThemeID – Value False
Disable Manual Update Url
app.update.badge – Value False
app.update.channel – String Value – None
app.update.checkInstallTime – Value False
app.update.url.manual – String Value – None
app.update.url – String Value – None
app.update.url.details – String Value – None
browser.aboutHomeSnippets.updateUrl – String Value – None
app.update.staging.enabled – Value False
Disable Reporting
browser.tabs.crashReporting.sendReport – Value False
dom.ipc.plugins.flash.subprocess.crashreporter.enabled – Value False
dom.ipc.plugins.reportCrashURL – Value False
dom.ipc.reportProcessHangs – Value False
layout.css.report_errors – Value False
security.ssl.errorReporting.enabled – Value False
toolkit.telemetry.shutdownPingSender.enabled – Value False
Disable Sync
services.sync.sendTabToDevice.enabled – Value False
services.sync.sendVersionInfo – Value False
Browser
browser.uitour.enabled – Value False
browser.download.lastDir – String Value – None
dom.event.clipboardevents.enabled – Value False
Disable Device Battery Monitoring
dom.battery.enabled – Value False
Disable Flashgot Logs
flashgot.logEnabled – Value False
Disable Stylish Updates
extensions.stylish.updatesEnabled – Value False

Applications

Delete Adobe Creative Cloud
*Notice – Installing any Adobe application will install Creative Cloud. It is not necessary to run Adobe apps.*
sudo rm -rf /applications/adobe\ creative\ cloud/adobe\ creative\ cloud
sudo rm -rf /applications/adobe\ creative\ cloud/uninstall\ adobe\ creative\ cloud
sudo rm -rf /applications/utilities/adobe\ application\ manager
sudo rm -rf /applications/utilities/adobe\ creative\ cloud
sudo rm -rf /applications/utilities/adobe\ creative\ cloud\ experience
sudo rm -rf /applications/utilities/adobe\ installers
sudo rm -rf /applications/utilities/adobe\ sync
Library
sudo rm -rf /library/application\ support/adobe/adobe\ desktop\ common
sudo rm -rf /library/launchagents/com.adobe.aam.updater-1.0.plist
sudo rm -rf /library/launchagents/com.adobe.adobecreativecloud.plist
sudo rm -rf /library/launchagents/com.adobe.armdchelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a23d420d.plist
sudo rm -rf /library/launchagents/com.adobe.gc.agm.plist
sudo rm -rf /library/launchagents/com.adobe.gc.invoker-1.0.plist
sudo rm -rf /library/launchdaemons/com.adobe.acc.installer.plist
sudo rm -rf /library/launchdaemons/com.adobe.agsservice.plist
sudo rm -rf /library/launchdaemons/com.adobe.armdc.Communicator.plist
sudo rm -rf /library/launchdaemons/com.adobe.armdc.smJobBlessHelper.plist
sudo rm -rf /library/privilegedhelpertools/com.adobe.acc.installer
sudo rm -rf /library/privilegedhelpertools/com.adobe.armdc.Communicator
sudo rm -rf /library/privilegedhelpertools/com.adobe.armdc.smjobblesshelper
User Library
sudo rm -rf /users/user/library/application\ support/adobe/coresync

Monolingual
Monolingual is great for removing unnecessary languages and architectures, at the same time freeing up your hard drive space. Just use once, best after you are done adding all the applications you need.
Delete Monolingual
After you are done using it.
sudo rm -rf /applications/monolingual.app
sudo rm -rf /library/privilegedhelpertools/com.github.ingmarstein.monolingual.helper
sudo rm -rf /library/launchdaemons/com.github.ingmarstein.monolingual.helper.plist
sudo rm -rf /users/user/library/application\ scripts/com.github.ingmarstein.monolingual
sudo rm -rf /users/user/library/containers/com.github.ingmarstein.monolingual

Maintenance
These mac cleaning applications are really just using the same terminal commands (provided below) hidden behind a graphical user interface with buttons.
They are a scam as well, while they work because they are just using simple terminal commands, at the same time the application is probably spying on you. So you essentially installed spy software on your computer. The App Store is no exception, the majority of apps both free and paid are coded by design to extract your data and spy on your every move.

Only install an application if you really need it.
The best way to operate is look for a terminal solution first. If that is not possible then download an open source application. All maintenance tasks are performed in the terminal.

Terminal
Private
Delete Diagnostic Messages – sudo rm -rf /private/var/log/diagnosticmessages/*
Delete Diagnostics High Volume Logs – sudo rm -rf /private/var/db/diagnostics/highvolume/*
Delete Diagnostics Persist Logs – sudo rm -rf /private/var/db/diagnostics/persist/*
Delete Diagnostics Special Logs – sudo rm -rf /private/var/db/diagnostics/special/*
Delete Private Receipts – sudo rm -rf /private/var/db/receipts/*
Delete Private Sleep Image – sudo rm -rf /private/var/vm/sleepimage
Delete System Logs – sudo rm -rf /private/var/log/*
System
Delete Receipts – sudo rm -rf /system/library/receipts/*
Library
Delete Icon Cache – sudo rm -rf /library/caches/com.apple.iconservices.store
Delete Logs – sudo rm -rf /library/logs/*
Delete Receipts – sudo rm -rf /library/receipts
Delete Updates – sudo rm -rf /library/updates
User Library
Delete Cache – sudo rm -rf /users/user/library/caches/*
Delete Logs – sudo rm -rf /users/user/library/logs/*
Delete Crash Reporter Logs – sudo rm -rf /users/user/library/application\ support/crashreporter/*
Delete iOS iTunes Backups – sudo rm -rf /users/user/library/application\ support/mobilesync
Delete Adobe Photoshop Crashes – sudo rm -rf /users/user/library/photoshopcrashes
Reset Xcode Preferences – defaults delete com.apple.dt.xcode
Reset Safari – sudo rm -rf /users/user/library/safari
Commands
Delete Used Ram – sudo purge
Disable .DS_Store Files All USB Devices – defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
Enable .DS_Store Files All USB Devices – defaults write com.apple.desktopservices DSDontWriteUSBStores -bool false
Disable All .DS_Store Files – defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Enable All .DS_Store Files – defaults write com.apple.desktopservices DSDontWriteNetworkStores false
Delete All .DS_Store Files – sudo find / -name “.DS_Store” -depth -exec rm {} \;
Delete All Desktop.ini Files – sudo find / -name “desktop.ini” -depth -exec rm {} \;
Delete All Thumbs.db Files – sudo find / -name “thumbs.db” -depth -exec rm {} \;
Delete Dns Cache – sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say cache flushed
Delete Trash – rm -rf ~/.Trash/*
Delete All Files In A Folder – /*
Show All Extended Attributes – xattr -l
Delete All Extended Attributes – xattr -c
Delete Single Extended Attribute – xattr -d
Delete Free Hard Drive Space – diskutil secureerase freespace 1 /volumes/macintosh\ hd
Battery Check – pmset -g batt
Firmware Check – /usr/libexec/firmwarecheckers/eficheck/eficheck –integrity-check
System Updates Check – softwareupdate -l
System Updates Install All – softwareupdate -i -a
Issues
Restart Finder – killall Finder
Filesystem Monitor – sudo fs_usage
Stop Filesystem Monitor – Command + Period Keys
Running Processes – ps ax
Reindex Spotlight – sudo mdutil -E /
Reset Disk Permissions – diskutil resetuserpermissions / `id -u`
Disable Gatekeeper (Allow All Apps) – sudo spctl –master-disable
Gatekeeper Status – spctl –status
Open Damaged Apps – xattr -cr /applications/
Force Eject Internal Optical Drive – drutil eject internal
Force Eject External Optical Drive – drutil eject external
Commands
System Profiler – /usr/sbin/system_profiler SPHardwareDataType
System Info – sysctl -a
Date – date
On Time – uptime
Volume – osascript -e “set Volume 10”
Screen Saver 10.13+ – /System/Library/CoreServices/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine
Screen Saver 10.12 – /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app
Sleep – pmset sleepnow
Wake – caffeinate -u -t 1
Restart – sudo reboot
Shutdown – sudo shutdown -h now
Shutdown – sudo halt
Shutdown In Minutes – sudo shutdown -h +30
Change Password – sudo /usr/bin/dscl . -passwd /Users/username newpassword
sudo security set-keychain-password -o oldpassword -p newpassword /Users/username/Library/Keychains/login.keychain
Search For User Account – /usr/bin/dscl . -search /Users name user
Delete User Account – sudo /usr/bin/dscl . -delete “/Users/user”
Delete User Icon – sudo dscl . delete /Users/user jpegphoto
Enable Screen Sharing – sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers
Enable Afp File Sharing – sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist
Enable Smb File Sharing – sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.smbd.plist
Enable Remote Login (Ssh) – sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
Disable Remote Login (Ssh) – sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
Enable Remote Management – sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -privs -all -restart -agent -menu
Open Application – open -a
Downgrade To iTunes 12.6.2.20 – sudo rm -rf /applications/itunes.app
iTunes High Contrast – defaults write com.apple.iTunes high-contrast-mode-enable -bool yes
Dashboard Widgets On Desktop – defaults write com.apple.dashboard devmode yes && killall Dock
Dashboard Widgets On Desktop Off – defaults write com.apple.dashboard devmode no && killall Dock
Copy File – cp -r
Move File – mv
Hide File – chflags hidden
Unhide File – chflags nohidden
Show Hidden Files – defaults write com.apple.finder AppleShowAllFiles yes
Hide Hidden Files – defaults write com.apple.finder AppleShowAllFiles no
Search – mdfind -name
Speech – say
Login Screen Custom Text – sudo write /library/preferences/com.apple.loginwindow loginwindowtext “custom text here”
Login Screen Custom Text Reset – sudo defaults write /library/preferences/com.apple.loginwindow loginwindowtext “”
Disable Keyboard – sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext
Enable Keyboard – sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext
Change Creation Date – setfile -d
Change Modification Date – sudo touch -mt yyyymmddhhmm
Change Creation, Last Opened & Modified Date – sudo touch -t yyyymmddhhmm
Change Creation, Last Opened & Modified Date – sudo find /* -type f -exec touch -t yyyymmddhhmm {} \;
Show All Commands – Escape Key Twice
Internet
Wifi On – networksetup -setairportpower airport on
Wifi Off – networksetup -setairportpower airport off
Search Wifi Networks Link 10.10+ – sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport
Search Wifi Networks Link 10.6+ – sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
Search Wifi Networks – airport -s
Find Mac Addresses – ifconfig
Find Ipv4 Address – curl v4.ident.me
Find Ipv6 Address – curl v6.ident.me
Find Ip Address – curl ipinfo.io
Ip Address Info – curl ipinfo.io/0.0.0.0
Domain Info – whois
Open Url In Browser – open http://
Dns – dig
Dns – nslookup
Dns – host

Terminal Software
*Homebrew software packages for Terminal*
Command Line Tools – xcode-select –install
Homebrew – /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Uninstall Homebrew – ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)”
Disable Brew Analytics – brew analytics off
Brew Analytics Status – brew analytics
Brew Configuration – brew config
Brew Check – brew doctor
Brew Installed List – brew list
Brew Search All Packages – brew search
Brew Update – brew update
Brew Upgrade – brew upgrade
Brew Uninstall – brew uninstall

Open Files Not Supported By Archive Utility
P7zip – brew install p7zip
P7zip Open – 7za x
P7zip Supported Formats – Ar, Arj, Cab, Chm, Cpio, CramFS, Dmg, Ext, Fat, Gpt, Hfs, Ihex, Iso, Lzh, Lzma, Mbr, Msi, Nsis, Ntfs, Qcow2, Rar, Rpm, SquashFS, Udf, Uefi, Vdi, Vhd, Vmdk, Wim, Xar and Z
Unarj – brew install unarj
Unarj Open – unarj x
Cabextract – brew install cabextract
Chmlib – brew install chmlib
.Chm Open – extract_chmLib
Lhasa – brew install lhasa
.Lzh / .Lzs Open – lhasa x
Sqlite – brew install sqlite
Unpkg – brew cask install unpkg
Unrar – brew install unrar
.Rar Open – unrar x
.War View Contents – jar -t
.War Open – jar -x

Convert Files
Abc2midi – brew install abcmidi
Antiword – brew install antiword
Install Flac To Mp3 – brew install flac lame
Convert Flac To Mp3 – for f in *.flac; do flac -cd “$f” | lame -b 320 – “${f%.*}”.mp3; done
Convert Flac To Mp3 Set Alias – alias flac2mp3=’for f in *.flac; do flac -cd “$f” | lame -b 320 – “${f%.*}”.mp3; done’

Utility
Record Video
Ffmpeg – brew install ffmpeg
Imagesnap – brew install imagesnap
Record Audio
Sox – brew install sox
Record Audio – sox -d audio.mp3
128kb Quality
Strip Metadata from Images
Exiftool – brew install exiftool
exiftool -all= photo.jpg
Weather
Ansiweather – brew install ansiweather
Calculator
Calc – brew install calc

Information
Recon-ng – brew install recon-ng
TheHarvester – brew install theharvester
Wireshark – brew install wireshark
WpScan – brew install wpscan

Internet
Spoof-mac – brew install spoof-mac
Speedtest-cli – brew install speedtest_cli
Telnet – brew install telnet
Wget – brew install wget
Bandcamp-dl – brew install bandcamp-dl
Youtube-dl – brew install youtube-dl

Passwords
Generic
Hashcat – brew install hashcat
Hydra – brew install hydra
Lcrack – brew install lcrack
Pdf
Pdfcrack – brew install pdfcrack
Zip
Fcrackzip – brew install fcrackzip
Wifi-password – brew install wifi-password

Games
macOS Games – ls /usr/share/emacs/22.1/lisp/play
emacs
Hold – Escape, x
Open – Type Game
Cowsay – brew install cowsay
Gnu-chess – brew install gnu-chess
Gnu-shogi – brew install gnu-shogi
Vitetris – brew install vitetris

Startup Commands
Choose Startup Disk – Option
Reset Nvram & Pram – Command, Option, P, R (Hold Until Restart & Chime) (This Will Reset To Enable System Integrity Protection (Rootless)
Reset Smc – Control, Option, Shift, Power (Hold For 10 Seconds)
Startup CD / DVD – C
Startup macOS Volume From Default Boot Non macOS Volume – X
Single User Mode – Command, S
Target Disk Mode – T
Safe Mode – Shift
Verbose Mode – Command, V
Recovery OS – Command, R
Recovery OS Internet – Command, Option, R
Hardware Test – D
Hardware Test Internet – Option, D
Netboot Server – N
Netboot Server Default Image – Option, N