MacOS essentials

Increase Mouse Speed

defaults read -g com.apple.mouse.scaling current speed is normally 3
defaults write -g com.apple.mouse.scaling 10.0 set it to 10

Keyboard

Use US, not US International.

Half Space in Persian Keyboard

Shift + Space

Go To Folder

Command + Shift + G

MacOS Version

sw_vers

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Access Denied npm

sudo npm install -g electron --unsafe-perm=true --allow-root

Globally Installed Node Modules Path

/usr/local/lib/node_modules

Kill Open Port

lsof -w -n -i tcp:8080
kill -9 {PID}