国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | LAFBD-41 | |
---|---|---|
2 | SSNI-497 | |
3 | ABP-984 | |
4 | IPX-580 | |
5 | IPX-811 | |
6 | IPX-177 | |
7 | STARS-804 | |
8 | SMBD-115 | |
9 | ABP-968 | |
10 | ABF-017 |
-
https://icons.duckduckgo.com/ip2/{hostname}.ico
-
https://www.google.com/s2/favicons?domain_url={hostname}
-
https://favicon.yandex.net/favicon/{hostname1}/{hostname2}/
-
https://f1.allesedv.com/16/{hostname}
http://grab-favicons.herokuapp.com/api/v1/grab-favicons/?url={hostname}
https://besticon-demo.herokuapp.com/icon?url={hostname}&size=80..120..200
http://favicongrabber.com/service-api-reference
It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.
A number of things have happened since the last update.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YouTube字幕自动选择翻译->中文简体 | |
// @namespace http://tampermonkey.net/ | |
// @version 1.2 | |
// @description translate to Chinese automatically. 自动点击字幕翻译到中文简体 | |
// @author qwertyuiop6 | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== |
QR code generating with vanilla js (SVG Element, Data URI PNG String, HTML table element) https://github.com/englishextra/qrjs
A Pen by englishextra on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PPA 镜像加速 | |
2018年7月26日 BY : TATERLI | |
这里有USTC的反向代理. | |
https://lug.ustc.edu.cn/wiki/mirrors/help/revproxy | |
只要一句话,全替换成USTC加速的PPA.再也不担心了. | |
1 | |
sudo find /etc/apt/sources.list.d/ -type f -name "*.list" -exec sed -i.bak -r 's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 http\2://launchpad.proxy.ustclug.org#ig' {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rime table | |
# coding: utf-8 | |
#@/db_name custom_phrase.txt | |
#@/db_type tabledb | |
# | |
# 用於【朙月拼音】系列輸入方案 | |
# 【小狼毫】0.9.21 以上 | |
# | |
# 請將該文件以UTF-8編碼保存爲 | |
# Rime用戶文件夾/custom_phrase.txt |
NewerOlder