Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2012 22:32
Show Gist options
  • Save anonymous/4280693 to your computer and use it in GitHub Desktop.
Save anonymous/4280693 to your computer and use it in GitHub Desktop.
Share localhost with anyone
#!/bin/bash -x
# Based on: https://coderwall.com/p/vqp_yw and
# http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
sudo apt-get install rubygems1.8
cd $@
python -m SimpleHTTPServer
/var/lib/gems/1.8/bin/localtunnel -k ~/.ssh/id_rsa.pub 8000 # hmm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment