Skip to content

Instantly share code, notes, and snippets.

View tongtongyuanyuan's full-sized avatar

tongtongyuanyuan tongtongyuanyuan

View GitHub Profile
@tongtongyuanyuan
tongtongyuanyuan / install-python-from-source.md
Created March 1, 2022 00:24 — forked from xiaopeng163/install-python-from-source.md
Install Python 3.7 from source code on Ubuntu 18.04
[12:12:41] pengxiao:~ $ sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libssl-doc libssl1.1
The following NEW packages will be installed:
  libssl-dev libssl-doc
The following packages will be upgraded:
@tongtongyuanyuan
tongtongyuanyuan / web-servers.md
Created April 19, 2019 22:29 — 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