Conda Notes
导入 导出环境
pip 兼容 —- 制作 requirements.txt
| |
conda 导出 环境
| |
conda 导入 环境(多个)
| |
regex ---- python regex
Tutorial
python 官方
Regular Expressions | Regex Examples | Regexp Tutorials | OCPsoft
- 常用例子解说
Cover - Understanding Python re(gex)?
- 类似一个 manual, 另外有不少高级用法,如:使用 perl regex 语法
seq ---- Sequence linux command
作用
- 枚举, 类似 python range
eg:
| |
Bash Notes
命令
gpg
- gnu privacy guard
重定向
heredoc
eg:
1 2 3 4 5sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://o8npla25.mirror.aliyuncs.com"] } EOF
使用 XDG_HOME 存放 .bashrc
参考:
把下面的内容存放到 /etc/profile.d/bash_xdg.sh 中:
| |
string 字符串
基本语法
tar ---- linux file compression and archive command
快速 + 多线程压缩
使用 pigz 辅助实现
1tar -cf - /var demo |pigz -9 -p3 > test.tar.gz注意
- -cf 后面的 "-"
- 它会最后被 > test.tar.gz 取代
参考