https://www.gravatar.com/avatar/925f106f8657f9f31645440a0a538227?s=240&d=mp

docker 网络配置之macvlan

配置ipv6cat /etc/docker/daemon.json { "ipv6": true, "fixed-cidr-v6": "fd00:dead:beef::/48" } 让容器内应用也能访问ipv6 ipv6nat:container_name:"ipv6nat"image:"robbertkl/ipv6nat"network_mode:"host"privileged:truerestart:"unless-stopped"volumes:- "/lib/modules:/lib/modules:ro"- "/var/run/docker.sock:/var/run/doc

windows配置ssh

安装软件# Install the OpenSSH Client Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 # Install the OpenSSH Server Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 这时候就能使用用户密码登陆了 配置密钥使用密钥就不用每次输密码 # By default the ssh-agent service is disabled. Configure it to start automatically. # Make sure you're running

c# 切片

提取 arr 前3个元素 如果用 linq 的话,可以用 Take(3),用切片操作的话就是 [0..3], 代码如下: static void Main(string[] args) { var myarr = new string[] { "10", "20", "30", "40", "50", "60", "70", "80", "90", "100" }; //1.

windows下vpn只用内网路由

windows下vpn只用内网路由最近🐏了居家办公,需要连接公司的网络,所以使用公司的vpn 但是有个问题,默认所有的流量都会走公司的vpn,