SSH掉线问题 2022.8.28 2026.5.3 工具 104 1 分钟一般ssh一分钟不操作就会掉线, 导致卡住终端 1 sudo vim /etc/ssh/ssh_config 修改为 ServerAliveInterval 30 # 每隔多少时间发送一次……阅读更多 »
Jetbrains Terminal 2022.8.28 2026.5.3 工具 150 1 分钟Goland的终端分为两种, 一种是过长不换行的,像windows的, 该模式下写gin……阅读更多 »
dockerd 相关设置 2022.8.28 2026.5.3 工具 397 1 分钟Docker Proxy ~/.docker/config.json 1 2 3 4 5 6 7 8 9 { "proxies": { "default": { "httpProxy": "http://192.168.88.1:8889", "httpsProxy": "http://192.168.88.1:8889", "noProxy": "127.0.0.0/8" } } } 注意 这里的proxies会导致创……阅读更多 »
批量重命名 2022.7.30 2026.5.3 代码 38 1 分钟1 2 3 4 5 6 7 8 9 from os import system, popen originPostFix = 'js' toPostFix = 'ts' ans = popen(f'find . -name "*.{originPostFix}" ') for i in ans.read().split('\n'): if not i: continue system(f'mv {i}{i.replace(originPostFix, toPostFix)}')