Skip to content

Instantly share code, notes, and snippets.

@kennyp
Created March 19, 2014 20:48
Show Gist options
  • Save kennyp/9650857 to your computer and use it in GitHub Desktop.
Save kennyp/9650857 to your computer and use it in GitHub Desktop.
function local_server() {
cp ~/lib/favicon.ico .
ruby -run -e httpd -- -b 127.0.0.1 -p 8080 . &> /dev/null &
local pid=$!
ngrok -subdomain=kennyp 8080
kill $!
rm favicon.ico
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment