Created
March 6, 2018 02:15
-
-
Save g761007/f5168ed0531722755af314758e7dacae to your computer and use it in GitHub Desktop.
Double click command to run a python simple web server on mac.
This file contains 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 characters
#!/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