npm仓库cdn:
https://npm.elemecdn.com
https://github.elemecdn.com
* 需配合unpkg.com格式访问资源
04月
16
npm仓库cdn:
https://npm.elemecdn.com
https://github.elemecdn.com
* 需配合unpkg.com格式访问资源
你若盛开,蝴蝶自来。
github镜像网站:
https://hub.fastgit.org(已挂)
https://hub.fastgit.xyz
https://hub.おうか.tw
让 GitHub 的 SSH 走代理通道
vim ~/.ssh/config
Host github.com
HostName github.com
User git
ProxyCommand nc -v -x 127.0.0.1:12345 %h %p #这里的端口和代理的端口保持一致
一切都是最好的安排。
正则表达式判断是否url
var regexp = /^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/
这个世界很假,不要轻易相信任何人,你要知道,你看到的都是别人想让你看到的。
nginx 带参数 301 跳转写法 rewrite ^/(.*) https://coor.top/$1 permanent;
nginx 带参数 302 跳转写法 rewrite ^/(.*) https://coor.top/$1 redirect;
通过 ((a*256+b)*256+c)*256+d
公式可将ip转化为纯数字,比如 192.168.1.50
带入公式 ((192*256+168)*256+1)*256+50
等于 3232235826
可得出纯数字地址为 http://3232235826
git clone时,只clone最新一次提交记录
git clone --depth 1 https://github.com/{username}/{project}