6 ms·
The quickest way to launch a web server for sharing files. All you need is Python…or Ruby!
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/
- known 18y agohttps://addons.mozilla.org/en-US/firefox/addon/3002 https://addons.mozilla.org/en-US/firefox/addon/3002
- RobGR 18y agoIf 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 http://ringlight.us/present/About
- ashleyw 18y agoWorks out of your network too, as long as port 8000 is open and accessible…