Skip to content

Instantly share code, notes, and snippets.

@g761007
Created March 6, 2018 02:15
Show Gist options
  • Save g761007/f5168ed0531722755af314758e7dacae to your computer and use it in GitHub Desktop.
Save g761007/f5168ed0531722755af314758e7dacae to your computer and use it in GitHub Desktop.
Double click command to run a python simple web server on mac.
#!/bin/sh
ip=$(ipconfig getifaddr en0)
echo "your ip: $ip"
exec python -m SimpleHTTPServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment