macintosh
model | Macbook Pro 13″ () |
---|---|
OS | macOS Ventura |
chip | Apple M2 |
memory | 24 GB |
tools
Homebrew | package manager |
iTerm2 | terminal |
grimoire
Copy and paste stuff via Terminal
echo 'meow' | pbcopy
pbpaste
GPG issues? Usually occurs after package update
gpgconf --kill gpg-agent
Make Mac sleep
pmset sleepnow
get battery cycle count
system profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}'
Send a system notification with sound (sound files in /System/Library/Sounds
or ~/Library/Sounds
)
osascript -e 'display notification "take a break" sound name "Glass"'
xcode woes
xcode-select --install
xcode-select --reset