Skip to content

Instantly share code, notes, and snippets.

@akofman
Last active January 26, 2016 13:18
Show Gist options
  • Save akofman/9516954 to your computer and use it in GitHub Desktop.
Save akofman/9516954 to your computer and use it in GitHub Desktop.
OSX Reminders

List TCP connections which are in LISTEN state :

lsof -P -iTCP -sTCP:LISTEN

List MAC addresses on a local network (192.168.0.0/24) :

sudo arp-scan 192.168.0.0/24

Reboot camera :

sudo killall VDCAssistant

Sort file by size in a directory (need gsort from brew) :

du -h -d 1 | gsort -h
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment