Skip to content

Instantly share code, notes, and snippets.

Last active Mar 24, 2021
What would you like to do?
Apple cli tweaks
# Disable gesture navigation only in Chrome
defaults write AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Make Finder display "hidden" files and folders
# like ~/.ssh
defaults write AppleShowAllFiles TRUE
# Apache in Mountain Lion
# Enable apache service on boot (default)
sudo defaults write /System/Library/LaunchDaemons/org.apache.httpd Disabled -bool false
# Disable apache service on boot
sudo defaults write /System/Library/LaunchDaemons/org.apache.httpd Disabled -bool true
# Don't forget -- apachectl for starting, stopping, etc
sudo apachectl [start|stop|restart|graceful|graceful-stop]
# Turn off "Verifying [file name]" in High Sierra
defaults write LSQuarantine -bool NO
# Turn off screenshot shadows
defaults write disable-shadow true
killall SystemUIServer
# Turn font smoothing back on in Mojave
defaults write -g CGFontRenderingFontSmoothingDisabled -bool FALSE
# Fix SD Card reader sleep mode in Mojave
sudo pmset -a disksleep 1410065408
# Remove an application from Sierra+ quarantine/translocation
xattr -dr "/Applications/[application].app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment