macOS #
Readings #
Useful Software #
Setting #
Runtime/Internet #
Microphone/Camera #
Printer #
Hold for Authentication #
In Keychain Access.app, search for name of the printer, delete the password, and try again.
The sudo lpadmin -p [printer-name] -o auth-info-required=username,password command suggested on this website does not work although it looks like it should.
Shell #
System Info #
Find main board ID:
ioreg -l | grep board-idFind Mac model ID:
sysctl hw.modelFind MAC address:
ifconfig en0 | grep etherAllow app downloads from anywhere #
Credit: How to allow apps downloaded from anywhere on Mac
sudo spctl --master-disableFind BundleID for application #
Credit: Getting a Bundle ID using an Alfred File Action – Rob Allen
osascript -e 'id of app "<Application Name>"'Solve “App is damaged and can’t be opened” #
sudo xattr -rd com.apple.quarantine "path/to/file.app"Useful Operations #
Restart Quick Look:
killall -9 -v QuickLookUIServiceRestart Touch Bar:
pkill "Touch Bar agent"; killall "ControlStrip"Restart paste board:
killall pboardWhen trackpad is malfunctioning:
killall DockFind and delete all .DS_Store files in current folder: (credit)
find . -name '.DS_Store' -type f -deleteFix Xcode hanging in Terminal: (credit)
sudo xcodebuild -license acceptRestart bluetooth service: (requires blueutil, credit)
blueutil -p 0 && sleep 1 && blueutil -p 1Advanced Settings #
Check SIP status:
csrutil status
# System Integrity Protection status: enabled.Enable three-finger dragging: (credit)
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag 1 && defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag 1Show hidden files: (credit)
defaults write com.apple.finder AppleShowAllFiles 1Turn off Power Chime: (credit)
defaults write com.apple.PowerChime ChimeOnNoHardware 0
killall PowerChimeMake hidden apps’ icon transparent in the dock: (credit)
defaults write com.apple.dock showhidden 1
killall DockShow Safari develop & debug menu item: (credit)
defaults write com.apple.Safari IncludeDebugMenu 1
defaults write com.apple.Safari IncludeInternalDebugMenu 1Disable elastic scrolling in Safari: (credit)
defaults write -g NSScrollViewRubberbanding 0Find Third Party Kernel Extensions #
kextstat | grep -v com.appleDanger Zone #
Remove Snapz Pro #
sudo kextunload -b com.AmbrosiaSW.AudioSupport
cd /Library/Extensions/
sudo rm -r AmbrosiaAudioSupport.kext # r for recursive
cd /Library/LaunchDaemons/
sudo rm com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist
cd ~/Library/Containers/
sudo rm -r com.ambrosiasw.snapz-pro-xEdit Launch Items #
- PID: running
- Status:
0= finished- Positive = error
- Negative = terminated
# Find
launchctl list | grep epicgames
# PID Status Label
# - 1 com.epicgames.launcher
# Remove
launchctl remove com.epicgames.launcherEdit File Status #
Reference: How to remove driver and kexts on Mac? : SteamController
When some file cannot be accessed by Homebrew:
sudo chown -R $(whoami) $(brew --prefix)/*Edit Host File #
sudo vim /etc/hosts