Skip to content

Instantly share code, notes, and snippets.

@paulbellamy
Created March 22, 2013 14:45
Show Gist options
  • Save paulbellamy/5221808 to your computer and use it in GitHub Desktop.
Save paulbellamy/5221808 to your computer and use it in GitHub Desktop.
#!/bin/bash
host=`facter fqdn`
if [[ ! -n "$1" ]]; then
port=8000
else
port=$1
fi
echo "http://$host:$port"
python -m SimpleHTTPServer $port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment