1 | python -m pip install |
git submodule重新使用
发表于 | 阅读次数:
If you haven’t already run git rm --cached
path_to_submodule (no trailing slash) as well as rm -rf path_to_submodule
, do that!
Then:
- Delete the relevant lines from the
.gitmodules
file. e.g. delete these:
1 | [submodule "path_to_submodule"] |
- Delete the relevant section from .git/config. e.g. delete these:
1 | [submodule "path_to_submodule"] |
rm -rf .git/modules/path_to_submodule
Then, you can finally:
1 | git submodule add https://github.com/path_to_submodule |
命令行翻墙
发表于 | 阅读次数:
brew install取消更新
发表于 | 阅读次数:
1 | HOMEBREW_NO_AUTO_UPDATE=1 brew install proxychains-ng |
python编程101
发表于 | 阅读次数:
- 不使用obj 和 objs
sshd配置
发表于 | 阅读次数:
sudo vim /etc/ssh/sshd_config
去掉注释:
1 | RSAAuthentication yes # 启用 RSA 认证 |
/bin/systemctl restart sshd.service
tqdm is not callable
发表于 | 阅读次数:
TypeError: ‘module’ object is not callable
1 | tqdm.tqdm |
pycharm快捷键
发表于 | 阅读次数:
Pycharm 快捷键⇧⌘F/⇧⌘R
: 全局搜索/替换:
⇧⌘A
:执行一些action(git pull)
Shift-shift
文件名, 类名, 方法名
Alt+Enter
: 自动import
Alt + Left|Right
: 移动光标到上一次编辑或者返回移动之前的位置.
Ctrl+x
: 不用选择, 直接删除整行代码
Alt + 鼠标
or Shift + Crtl + Alt + 鼠标
: 选择多处进行同时编辑,
Ctrl+Tab
: 和chrome一样的切换标签
python参数和dict转换
发表于 | 阅读次数:
1 | def fun(**para): |