Last active
March 24, 2021 00:22
-
-
Save danmactough/6081043 to your computer and use it in GitHub Desktop.
Apple cli tweaks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable gesture navigation only in Chrome | |
# http://apple.stackexchange.com/a/80163/53921 | |
defaults write com.google.Chrome.plist AppleEnableSwipeNavigateWithScrolls -bool FALSE | |
# Make Finder display "hidden" files and folders | |
# like ~/.ssh | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
# Apache in Mountain Lion | |
# http://reviews.cnet.com/8301-13727_7-57481978-263/how-to-enable-web-sharing-in-os-x-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 com.apple.LaunchServices LSQuarantine -bool NO | |
# Turn off screenshot shadows | |
defaults write com.apple.screencapture disable-shadow true | |
killall SystemUIServer | |
# Turn font smoothing back on in Mojave | |
# https://ahmadawais.com/fix-macos-mojave-font-rendering-issue/ | |
defaults write -g CGFontRenderingFontSmoothingDisabled -bool FALSE | |
# Fix SD Card reader sleep mode in Mojave | |
# https://apple.stackexchange.com/a/338795/53921 | |
sudo pmset -a disksleep 1410065408 | |
# Remove an application from Sierra+ quarantine/translocation | |
xattr -dr com.apple.quarantine "/Applications/[application].app" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment