Skip to content

Instantly share code, notes, and snippets.

@amit-siddhu
amit-siddhu / coffee
Last active July 28, 2017 09:31
coffee
▄▄▄▄▄▄▄▄▄▄
  ▀▀▀ ▀  ▀▀▀  ▄
 ▀▀  ▀▀▀▀      ▀▀ 
  ▀▀▀▀▀    ▀[4
@amit-siddhu
amit-siddhu / ReferenceFile.sh
Created October 6, 2015 12:59
Some very useful utilities
#To start lightweight python http server
python -m SimpleHTTPServer 8000
#To listen on tcp port for incoming messages
sudo tcpflow -i any -C -J port 1234
find . -mtime -4 # find files modified less than 4 days ago
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +4 # find files modified more than 4 days ago