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/bash | |
# Accept CD Wifi (Czech railways) on the command line (if you hate clicking). | |
# http://cdwifi.cz | |
# | |
# Put the script to ~/bin/cdwifi and make sure that export it's on the path: PATH=$PATH:~/bin | |
# Note that if you have a custom DNS set (eg. 8.8.8.8 or 1.1.1.1) they don't resolve | |
# cdwifi.cz. If you don't want to use their DNS set via DHCP for all your traffic | |
# the workaround here is to query their DNS server at the gateway just | |
# for this request. | |
# |
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