Last active
May 23, 2019 04:48
-
-
Save yelban/8f897f53cb17711707a677873a15be13 to your computer and use it in GitHub Desktop.
OSX CLI
This file contains 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
# Recursively Remove ._ ( dot-underscore ) files | |
### osx | |
dot_clean -v . | |
### osx/linux | |
find . -name '._*' -type f -print -delete | |
# Recursively Remove .DS_Store | |
find . -name '.DS_Store' -type f -print -delete | |
# Recursively clear all entended attributes | |
sudo xattr -rc . | |
# OSX behavior | |
### Reset Launchpad Layout | |
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock | |
### Reset the Mac OS X Dock to Default Icon Set | |
defaults delete com.apple.dock; killall Dock | |
### Speed Up Time machines First back up | |
### Disable Low Process Priority Throttling (The change can be reversed with a reboot) | |
sudo sysctl debug.lowpri_throttle_enabled=0 | |
### Enable Low Process Priority Throttling | |
sudo sysctl debug.lowpri_throttle_enabled=1 | |
### Show Low Process Priority Throttling Status | |
sudo sysctl debug.lowpri_throttle_enabled | |
### Stop brew autoupdate | |
export HOMEBREW_NO_AUTO_UPDATE=1 | |
### nproc | |
alias nproc='echo sysctl -n hw.ncpu' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment