Skip to content

Instantly share code, notes, and snippets.

View renyuntao's full-sized avatar
🌴
On vacation

YtRen renyuntao

🌴
On vacation
View GitHub Profile
@renyuntao
renyuntao / web-servers.md
Created June 12, 2018 07:22 — 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
@renyuntao
renyuntao / my_site.conf
Created April 19, 2018 02:14 — forked from lixingcong/my_site.conf
nginx autoindex timezone setting
location ^~ /demo {
alias /var/www/demo/;
autoindex on;
# set to on means use localtime
autoindex_localtime on;
# show size with unit 'MB' instead of 'Byte'
autoindex_exact_size off;
}
@renyuntao
renyuntao / How to download streaming video
Created April 25, 2017 01:33 — forked from danfinlay/How to download streaming video.md
How to download a streaming video with Google Chrome
#How to download streaming video
Streaming just means a download that they don't want you to keep. But Chrome's developer tools make it easy to access what's really going on under the hood.
##Open Developer Tools
From the page where you want to download some things, go into your chrome menu to open the developer tools. You can either:
1. (On a mac): Command-option-J
2. (On a PC): Control-alt-J