Skip to content

Instantly share code, notes, and snippets.

@grebois
Created September 3, 2023 13:31
Show Gist options
  • Save grebois/12c9547c7b6b8b0a25ec41f525948222 to your computer and use it in GitHub Desktop.
Save grebois/12c9547c7b6b8b0a25ec41f525948222 to your computer and use it in GitHub Desktop.
# Disable Gatekeeper
sudo spctl --master-disable
# Disable Local Backups
sudo tmutil disablelocal
# Disable Backups
sudo tmutil disable
# Disable Sudden Motion Sensor
sudo pmset -a sms 0
# Disable Creation of Metadata Files on Network Volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable Spotlight Indexing
sudo mdutil -apE -i off
defaults write com.apple.universalaccess reduceTransparency -bool true
defaults write com.apple.screencapture location /Users/grebois/Downloads
defaults write com.apple.LaunchServices LSQuarantine -bool NO
sudo sysctl kern.maxfiles=4915200 kern.maxfilesperproc=2457600
sudo launchctl limit maxfiles 9000000 9999999
ulimit -Sn 9000000
serverinfo --setperfmode 1
sudo pmset -a hibernatemode 0
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.apsd.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.netbiosd.plist
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.quicklook.*
sudo nvram boot-args="-v vm_compressor=0 serverperfmode=1 enableDither=0 PE_i_can_has_debugger=1 iomfb_RuntimeProperty_enableDither=0 ipc_control_port_options=0 amfi_get_out_of_my_way=1"
sudo dscl . append /Groups/admin GroupMembership `whoami`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment