国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
| // 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. |
| // ==UserScript== | |
| // @name TeXify the World MathJax | |
| // @namespace | |
| // @version 1.0 | |
| // @description Enables MathJax to process LaTeX on all websites. Based off SOUP (Stack Overflow Unofficial Patch) and http://www.math.ucla.edu/~robjohn/math/mathjax.html. | |
| // @include * | |
| // @copyright | |
| // ==/UserScript== | |
| /* | |
| var mathjaxVersion = "http://cdn.mathjax.org"; |
| hdiutil | |
| Creating Internet-enabled Disk images | |
| hdiutil internet-enable -yes /Path/to/image/myapp.dmg | |
| burn an iso |
| /* jshint esversion: 6 */ | |
| // ==UserScript== | |
| // @name WSJ and Barrons Paywall Hack - No Popup Confirmation | |
| // @description Paywall bypass for WSJ and Barrons without any confirmation popup | |
| // @match https://www.wsj.com/* | |
| // @match https://www.barrons.com/* | |
| // @run-at document-end | |
| // @grant none | |
| // @version 1 | |
| // ==/UserScript== |
| // ==UserScript== | |
| // @name Medium Paywall Bypass | |
| // @namespace Violentmonkey Scripts | |
| // @run-at document-start | |
| // @match *://*.medium.com/* | |
| // @match *://medium.com/* | |
| // @match *://*/* | |
| // @grant none | |
| // @version 2.1 | |
| // @inject-into content |
| import torch | |
| import torch.nn as nn | |
| torch.backends.cudnn.benchmark = True | |
| from apex.normalization import FusedLayerNorm | |
| import time | |
| // ==UserScript== | |
| // @name 给 V2EX 用户打标签 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://www.v2ex.com/* | |
| // @match http*://*.v2ex.com/* | |
| // @match http*://v2ex.com/*s | |
| // @match https://v2ex.com/ |
| // ==UserScript== | |
| // @name Download YouTube subtitles | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Now you can download YouTube subtitles | |
| // @author André Kugland | |
| // @match http*://*.youtube.com/* | |
| // @grant none | |
| // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/FileSaver.min.js#sha256=bbf27552b76b9379c260579fa68793320239be2535ba3083bb67d75e84898e18 | |
| // ==/UserScript== |