Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/sh | |
| # This script will install Command Line Tools for Xcode on a fresh installation of OS X. | |
| # Usage: curl https://raw.github.com/gist/3053979/install-command-line-tools-for-xcode.sh | sh | |
| DMG='command_line_tools_for_xcode_june_2012.dmg' | |
| cd $HOME/Downloads | |
| if [ ! -f ./$DMG ]; then | |
| echo 'Command Line Tools for Xcode not downloaded.' |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000