Skip to content

Instantly share code, notes, and snippets.

@bigsolom
Last active February 20, 2017 13:12
Show Gist options
  • Save bigsolom/a107c7865f44a6acf177 to your computer and use it in GitHub Desktop.
Save bigsolom/a107c7865f44a6acf177 to your computer and use it in GitHub Desktop.
Useful Commands
#Find a file in directory and sort by date modified (logs updated for example)
find ./ -name "file_name" -printf "%T+\t%p\n" | sort -r
#Monitor the HTTP requests coming out of shell
tcpflow -p -c -i en0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*'
#or
httpry -i en0
#select and edit vertically
1. Ctrl+V #select column
2. i #insert
3. type the text you want to replace column with
4. ESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment