canbingzt's recent timeline updates
canbingzt

canbingzt

己所不欲,勿施于人。
V2EX member #122018, joined on 2015-06-12 18:19:18 +08:00
canbingzt's recent replies
Jan 3, 2025
Replied to a topic by pike0002 游戏开发 用 Cursor 一个小时撸了个 sudoku
https://imgur.com/a/GHcETQF

出现了非唯一解
Jan 3, 2025
Replied to a topic by pike0002 游戏开发 用 Cursor 一个小时撸了个 sudoku
Aug 14, 2024
Replied to a topic by ty29022 问与答 有大佬知道这是什么字体吗,好喜欢
https://www.codingfont.com/
可以试试这个网站
官方的皮壳掉漆严重,不建议买,建议买硅胶的
Dec 7, 2023
Replied to a topic by fdghjk 程序员 wsl 怎么升级 Ubuntu 的 Linux 内核
在命令行下执行 wsl --update
Oct 8, 2023
Replied to a topic by tool2d 随想 移动硬盘丢失后,如何启动自爆程序?
那这个 exe 是不是要能同时在 windows,mac,linux 上执行
@jayeli 我启用 systemd 后,然后启动 docker ,过一会 wsl 就会自动关闭了,但是不起用 systemd 就没事
```bash
hostip=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }')
port=7890
PROXY_HTTP="http://${hostip}:${port}"

export http_proxy="${PROXY_HTTP}"
export https_proxy="${PROXY_HTTP}"

git config --global http.proxy "${PROXY_HTTP}"
git config --global https.proxy "${PROXY_HTTP}"
```

取消的话
```bash
unset http_proxy
unset https_proxy

git config --global --unset http.proxy
git config --global --unset https.proxy
```

同时需要在宿主机添加防火墙规则
```powershell
Remove-NetFirewallRule -DisplayName "WSL"
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
```
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4597 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 05:33 · PVG 13:33 · LAX 22:33 · JFK 01:33
♥ Do have faith in what you're doing.