Skip to content

Instantly share code, notes, and snippets.

View dinesh876's full-sized avatar

Dinesh dinesh876

View GitHub Profile
@dinesh876
dinesh876 / web-servers.md
Created April 12, 2022 05:59 — 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
@dinesh876
dinesh876 / port_forwarding.md
Created September 5, 2021 05:24 — forked from dwallraff/port_forwarding.md
Add port forwarding to running SSH sessions

Use SSH's escape sequence <enter>~<shift>+c

user@sshhost $ ~C
ssh> L8080:localhost:8080
Forwarding port.
user@sshhost $ ~C
ssh&gt; KL8080