Created
March 26, 2015 16:04
-
-
Save scottrogowski/80c9a3d855431e2241f5 to your computer and use it in GitHub Desktop.
Revisions
-
scottrogowski created this gist
Mar 26, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/bin/bash ip=`ifconfig -r en0 inet | sed -E '/en0/d;s/inet[ \t]([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+).+/\1/'` ip=`echo $ip | tr -d '[:space:]'` echo "The files in this directory are being served! Go to $ip:8000 in a browser on your local network. When you are done, use ctrl-c to exit" python -m SimpleHTTPServer 8000