SSH掉线问题

一般ssh一分钟不操作就会掉线, 导致卡住终端 1 sudo vim /etc/ssh/ssh_config 修改为 ServerAliveInterval 30 # 每隔多少时间发送一次……

dockerd 相关设置

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会导致创……

批量重命名

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)}')

React Use