Short useful commands in OSX

Prevent OSX from sleep

pmset noidle

Get a picture size cli

mdls IMG_1331.JPG

Check loaded packaging

pkgutil --pkgs=".*compat.*"

Get file permissions in octal

stat -f '%A %a %N' file