General Mac

listening ports

lsof -i -P | grep LISTEN | grep :$PORT

stop vnc from locking on disconnect - using this to keep Conways game of life running on an old mac mini sparking new "life" everytime port 3389 is hit

sudo defaults write /Library/Preferences/com.apple.RemoteManagement RestoreMachineState -bool NO
fix go: cannot find GOROOT directory: /usr/local/opt/go/libexec

export GOROOT="$(brew --prefix golang)/libexec"

stupid DS store files...

find . -name ".DS_Store" -type f -delete

headless resolution change without HDMI dongle

brew install Caskroom/cask/cscreen
cscreen -d 32 -x 1920 -y 1080 -r 60

results matching ""

    No results matching ""