Instant, backgrounded local hosting for multiple files and folders.
Requires python
# serve the current directory foo:
serve .
# link copied to clipboard, e.g.
# http://192.168.0.6:3942/foo
# serve some more files...
serve ../bar/file1.txt ../bar/file2.txt
# file1.txt and file2.txt additionally hosted
serve -c
# all served items cleared up
place the 'serve' script anywhere exposed by your $PATH, e.g.
git clone https://github.com/benvan/serve.git
sudo ln -s "$(pwd)/serve/serve" /usr/local/bin
serve automatically copies urls to your clipboard. If you wish to disable this, delete the following line in the serve script:
CLIPBOARD=true
serve starts a python simplehttpserver running out of ~/.pythonserver. Files and folders are then symlinked from that directory as and when you need them.