mac os general - TeamFlowerPower/kb GitHub Wiki
- Jump to beginning of line: control + a
- Jump to end of line: control + e
- Backward delete word
xattr -d com.apple.quarantine /Applications/<appName>.app# Check status with
sudo spctl --status
sudo spctl --master-disable
# Check status with
sudo spctl --status
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
-> Reboot afterwards
-
Dominant Wake Triggers:
-
ATC2.USBWakeup / USB2_wake: USB-C charging controller polling/activity (common on M-series when plugged in; often due to charger/cable). -
NUB.SPMI0.SW3.IRQ / rtc/Maintenance: Real-time clock firing for scheduled background tasks (e.g., Calendar refresh, Spotlight, analytics).
-
-
Scheduled Events (from
pmset -g sched):-
com.apple.alarm.user-invisible-com.apple.calaccessd.travelEngine.periodicRefreshTimer-> Calendar background travel data refresh. -
com.apple.alarm.user-invisible-com.apple.acmd.alarm-> Apple Content Management Daemon timer (likely updates/analytics).
-
Check events:
pmset -g sched- Check in Battery Settings
- "Wake for network access" disabled
-
Cancel Scheduled Wakes:
sudo pmset schedule cancelall- Verify:
pmset -g sched(should be empty)
- Verify:
-
Lock AutoWake Plist (prevents re-addition):
sudo chflags schg /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist- How to revert if needed:
sudo chflags noschg /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist
- How to revert if needed:
-
Optional: Reduce Daemon Triggers:
- Turn off Calendar/iCloud sync if unused
- Disable "Share Mac Analytics" in Privacy settings
-
Test: Sleep Mac, check logs:
pmset -g log | grep -i "wake" | tail -50- Check for absence of RTC/maintenance or USB wakes
Always show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles TRUEdefaults write -g ApplePressAndHoldEnabled -bool false-> A bit counter-intuitive but false = repeat while holding down
defaults write com.apple.notificationcenterui bannerTime 2 # Time in secondsIf you want to have the same keys assigned as for the Mac keyboard go to System Settings -> Keyboard -> Keyboard Shortcuts... -> On the left side select Modifier Keys -> In Select keyboard select the right keyboard (e.g. USB keybaord) and assign: Option key to Command and Command key to Option.
If you reconnect your displays and applications are not in were they supposed to be but switched to another display. Move the devault display bar in arrange displays so that they fit again (somehow for me it worked best to circle it).
https://superuser.com/a/1220526/591879
Add these lines to ~/.inputrc:
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-completeTo enable run:
# bash
python -m pip completion --bash >> ~/.zprofile
# zsh
python -m pip completion --zsh >> ~/.zprofileUsually ~/.zprofile is empty.

