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/ RestoreMachineState -bool NO

enable vnc from terminal

sudo /System/Library/CoreServices/RemoteManagement/ -activate -configure -access -on -users admin -privs -all -restart -agent -menu

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

Mac VM Customizations

### Path bar in finder
defaults write ShowPathbar -bool true
### Status bar in finder
defaults write ShowStatusBar -bool true
### ScrollBars bar in finder
defaults write -g AppleShowScrollBars -string “Always”
### Always list style in windows
defaults write FXPreferredViewStyle -string “Nlsv”
### Clear ALL dock icons
defaults write persistent-apps -array


results matching ""

    No results matching ""