r/ScriptSwap • u/sunjay118 • Apr 13 '15
[sh] Send file over http, generate qr code for address
This script creates a onetime web server with netcat and then generates a qr code with the link to it and displays it. I use it to send files to my phone from my laptop.
usage:
- simphost port file
- simphost file (port defaults to 8080)
This script makes use of:
- netcat
- qrencode
- display
I put the script which I call simphostqr in a pastebin here .
9
Upvotes
3
u/utdemir Apr 13 '15
Hey, I wrote the exact same app, both via Python and afterwards Ruby. It's on GitHub too: https://github.com/utdemir/qrpush . But yours look more compact, good job :).
Mine was mostly for LAN's, since I live in Turkey and almost everyone here is behind NAT.
2
u/[deleted] Apr 13 '15
Cute, even useful... Why not github it? People might even be intrigued to contribute and help it grow ya know ;)