home

commonplace

macintosh

I Hate Macintosh
specs
modelMacbook Pro 13″ ()
OSmacOS Ventura
chipApple M2
memory24 GB

tools

Homebrewpackage manager
iTerm2terminal

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