Let's say you have a long link or file that you want to share with a friend on your LAN. You could just email or message your friend the content, but it seems like a waste to route it through someone else's email or chat server. FTP? Fuck that protocol. SCP? Shitty copy protocol. There has to be an easier way, right?
Now scream your private IP address to your friend and tell them to go to http://*IPADDRESS*:8000 in their web browser. All they need to do is download the file. When everything's done, you can press Ctrl-C to stop the HTTP server. Mission accomplished!
Wow, that was easy enough that you could probably easily write a script to do it. Lucky for you, check out [share.sh](share.sh) for a prewritten script to automate this process.