国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Attach to Chrome/Vivaldi", | |
| "port": 9222, | |
| "request": "attach", | |
| "type": "chrome", | |
| "url": "http://localhost:8080" | |
| }, |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| /* | |
| Parts of this code is inspired from the following: | |
| [1] https://userstyles.org/styles/105000/smart-dark | |
| */ | |
| html { | |
| background-color: #222 !important; | |
| } | |
| body { |
| [Desktop Entry] | |
| Version=1.0 | |
| Name=Telegram Desktop | |
| Comment=Official desktop version of Telegram messaging app | |
| TryExec=/opt/Telegram/Telegram | |
| Exec=/opt/Telegram/Telegram -- %u | |
| Icon=telegram | |
| Terminal=false | |
| StartupWMClass=TelegramDesktop | |
| Type=Application |
| # NOTE: registry keys for IE 8, may vary for other versions | |
| $regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | |
| function Clear-Proxy | |
| { | |
| Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 0 | |
| Set-ItemProperty -Path $regPath -Name ProxyServer -Value '' | |
| Set-ItemProperty -Path $regPath -Name ProxyOverride -Value '' | |
| [Environment]::SetEnvironmentVariable('http_proxy', $null, 'User') |
| /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
| /* ========================================================================== | |
| HTML5 display definitions | |
| ========================================================================== */ | |
| /** | |
| * Correct `block` display not defined in IE 8/9. | |
| */ |
| #允许rpc | |
| enable-rpc=true | |
| #允许所有来源, web界面跨域权限需要 | |
| rpc-allow-origin-all=true | |
| #允许非外部访问 | |
| rpc-listen-all=true | |
| #RPC端口, 仅当默认端口被占用时修改 | |
| rpc-listen-port=6800 | |
| # 保存日志到文件,没有该文件用 touch 命令新建,不然会报错 | |
| log=/mnt/upan/aria2.log |
| $OutputEncoding = New-Object -typename System.Text.UTF8Encoding | |
| [Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding |