Skip to content

Instantly share code, notes, and snippets.

@MakaryGo
MakaryGo / web-servers.md
Created May 8, 2020 14:24 — forked from willurd/web-servers.md
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Keybase proof

I hereby claim:

  • I am makarygo on github.
  • I am makary (https://keybase.io/makary) on keybase.
  • I have a public key ASA2OA2BZv6yXm3kb9bJyid7FeVwIpCRfANAWf9nly43zAo

To claim this, I am signing this object:

#!/bin/sh
if [ -z "$1" -o -z "$2" -o -z "$3" ]; then
cat <<EOF
getdicts lang2 country language
lang2 - the two letter abbreviation of the language ISO 3166-1 ALPHA-2
country - the two letter abbreviation of the country ISO 639
language - the full name of the language