配置 Docker 的代理或镜像源
配置代理
创建或编辑 /etc/systemd/system/docker.service.d/http-proxy.conf 文件,写入以下内容:
1[Service]
2Environment="ALL_PROXY=http://192.168.1.100:7890"
3Environment="HTTP_PROXY=http://192.168.1.100:7890"创建或编辑 /etc/systemd/system/docker.service.d/http-proxy.conf 文件,写入以下内容:
1[Service]
2Environment="ALL_PROXY=http://192.168.1.100:7890"
3Environment="HTTP_PROXY=http://192.168.1.100:7890"注册链接:DigitalPlat
点击上方链接打开注册页面,注册后可以获得 2 个免费域名额度。
遇到组播有概率收不到消息的问题,经分析是由于没有指定网络接口导致的。
该设备上有两个网卡,组播消息来自 192.168.32.31 所在的网络:
1> ipconfig
2
3Windows IP Configurtion现象:
1$ npm audit fix
2npm WARN audit 404 Not Found - POST https://registry.npmmirror.com/-/npm/v1/security/audits/quick - [NOT_IMPLEMENTED] /-/npm/v1/security/* not implemented yet
3{ error: '[NOT_IMPLEMENTED] /-/npm/v1/security/* not implemented yet' }
4npm ERR! audit endpoint returned an error1#include <stdio.h>
2#include <stdlib.h>
3#include <windows.h>
4#include <wbemidl.h>宿主机通过一个虚拟网卡与 WSL 进行连接,将代理设置为该网卡的 IP 地址即可。
在宿主机上可以通过 ipconfig 命令查看该网卡的地址:
1以太网适配器 vEthernet (WSL):
2
3 连接特定的 DNS 后缀 . . . . . . . :通常是注册表损坏导致的,执行下面的注册表脚本即可修复:
命名为
xxx.reg双击运行。
1Windows Registry Editor Version 5.00
2
3[HKEY_CLASSES_ROOT\.txt]很多代理商的原生配置对墙内墙外的识别都不太好,可以通过 Mixin 配置进行增强。
以 Clash For Windows 为例:
参考:PDF 转图片
1function createWorker(fn) {
2 const blob = new Blob(
3 [`(${fn.toString()})()`],
4 { type: 'application/javascript' }
5 );Linux 的 exec 函数族中函数的原型如下:
1int execl(const char *pathname, const char *arg, ...);
2int execlp(const char *file, const char *arg, ...);
3int execle(const char *pathname, const char *arg, ...);
4
5int execv(const char *pathname, char *const argv[]);