The quickest way to launch a web server for sharing files. All you need is Python…or Ruby!

5 points by ashleyw ↗ HN
Original in Python:

http://www.reddit.com/r/linux/comments/76p14/woof_simply_exchange_files/c05tpub

My Ruby version:

  alias webshare='ruby -e "require\"webrick\";w=WEBrick::HTTPServer.new(:Port=>8000,:DocumentRoot=>Dir::pwd);Signal.trap(2){w.shutdown};w.start"'
And just go to the directory you want to share, use the 'webshare' command, and tell your friend(s) to go to http://<your-IP>:8000/

3 comments

[ 2.6 ms ] story [ 19.4 ms ] thread
If you find this useful, you might find this better because it works even when you are not on the same network:

http://ringlight.us/present/About

Works out of your network too, as long as port 8000 is open and accessible…