Prevent Your Mac from Sleeping While Claude Code Works
Set up Claude Code to automatically keep your Mac awake during long tasks and let it sleep again when finished, using hooks and the caffeinate command.
// 6 articles available
Set up Claude Code to automatically keep your Mac awake during long tasks and let it sleep again when finished, using hooks and the caffeinate command.
Xcode eats storage through DerivedData, old simulators, device support files, and archives. Here's what each folder is and what is safe to delete.
Set REACT_NATIVE_PACKAGER_HOSTNAME to your Mac's .local name so an Expo dev build on a physical device finds Metro over Bonjour, no Expo Go needed.
Change where Mac screenshots save with Cmd+Shift+5 then Options, or run defaults write com.apple.screencapture location in Terminal. Takes 30 seconds.
Avoid cryptic build failures by setting up nvm to automatically use the right Node version when you cd into a project.
Stop macOS from writing .DS_Store files to network shares and USB drives with one Terminal command. Keep your repos and external drives clean.