Skip to content

Instantly share code, notes, and snippets.

View pranavburnwal's full-sized avatar
🏠
Working from home

Pranav K Burnwal pranavburnwal

🏠
Working from home
View GitHub Profile
@pranavburnwal
pranavburnwal / .zshrc
Created April 24, 2023 07:41 — forked from callumlocke/.zshrc
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
@pranavburnwal
pranavburnwal / web-servers.md
Created January 19, 2020 06:49 — 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