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

Vueuse

官网 : https://vueuse.org/ 源码解析 useLocalstorage 这个实现响应式的原理是 window下面有事件storage 代码如下……