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.

Revisions

  1. bigsolom revised this gist Feb 20, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions shell.sh
    Original file line number Diff line number Diff line change
    @@ -3,5 +3,5 @@ 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: .*'
    tcpflow -p -c -i lo0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*'
    tcpflow -p -c -i eth0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*'
    #or
    httpry -i en0
  2. bigsolom revised this gist Feb 20, 2017. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions shell.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    #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: .*'
    tcpflow -p -c -i lo0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*'
    tcpflow -p -c -i eth0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*'
  3. bigsolom created this gist Dec 10, 2015.
    3 changes: 3 additions & 0 deletions shell.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #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

    5 changes: 5 additions & 0 deletions vim.commands
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #select and edit vertically
    1. Ctrl+V #select column
    2. i #insert
    3. type the text you want to replace column with
    4. ESC