Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| //credits to: https://ilinkuo.wordpress.com/2014/01/05/a-better-settimeout/ | |
| function setTimeout3(callback, delay){ | |
| var handle = new Number(setTimeout(callback, delay)); | |
| handle.clear = function(){clearTimeout(handle);}; | |
| return handle; | |
| } |
| #Written by Sergio La Rosa ([email protected]) | |
| #https://gist.github.com/SergioLaRosa/ | |
| printf "#######################################" | |
| printf "\n### UBUNTU WORKSTATION SETUP SCRIPT ###" | |
| printf "\n#######################################\n" | |
| printf "\n[+] The script downloads and install the following packages:\n" | |
| printf "* pip3\n" | |
| printf "* python3 setup/packaging tools (dist, twine)\n" | |
| printf "* nano\n" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #Written by Sergio La Rosa ([email protected]) | |
| #https://gist.github.com/SergioLaRosa/ | |
| #IMPORTANT: Python 3 only | |
| import hashlib | |
| #Change this parameters | |
| filename = "example.bin" | |
| read_bytes = 1024 |
| #Written by Sergio La Rosa ([email protected]) | |
| #https://gist.github.com/SergioLaRosa/ | |
| #IMPORTANT: Python 3 only | |
| #Standard dict format | |
| ''' | |
| 'key':'value' | |
| ''' | |
| #Standard CSV format | |
| ''' |