From 3de9be56cc6b106fd263a48c5006fb0789c025a9 Mon Sep 17 00:00:00 2001 From: gotbletu Date: Wed, 23 Oct 2013 13:24:20 -0700 Subject: [PATCH] python server with upload --- simplehttpserver.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 simplehttpserver.txt diff --git a/simplehttpserver.txt b/simplehttpserver.txt new file mode 100644 index 0000000..c75254c --- /dev/null +++ b/simplehttpserver.txt @@ -0,0 +1,28 @@ +Notes for video: http://www.youtube.com/watch?v=au8DlTAHx5o + + +download location: +https://github.com/tualatrix/tools/blob/master/SimpleHTTPServerWithUpload.py + +or + +https://code.google.com/p/autosetup1/downloads/detail?name=SimpleHTTPServerWithUpload.py + + + +commands used: + +# give execute permissions to script +chmod +x SimpleHTTPServerWithUpload.py + +# run script manually +python2.7 SimpleHTTPServerWithUpload.py + +# edit bashrc with nano +nano ~/.bashrc + + Ctrl+o, Enter, Ctrl+x --> save file and exit + +# functions for ~/.bashrc +httpserver() { python2.7 ~/tmp/SimpleHTTPServerWithUpload.py ${1:-8000} ;} +