Skip to content

Instantly share code, notes, and snippets.

View letuananh's full-sized avatar
🎯
focusing on jamdict 0.1 stable release

Lea Tuan Anh Le letuananh

🎯
focusing on jamdict 0.1 stable release
View GitHub Profile
@letuananh
letuananh / web-servers.md
Created July 12, 2017 09:54 — 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
@letuananh
letuananh / Remove Submodule
Last active September 15, 2015 03:07 — forked from kyleturner/Remove Submodule
How to remove a submodule from a Github project
Run git rm --cached <submodule name>
Delete the relevant lines from the .gitmodules file.
Delete the relevant section from .git/config.
Commit
Delete the now untracked submodule files.
Remove directory .git/modules/<submodule name>