Quick Notes
SSH 免密码
1ssh-keygen
2ssh-copy-id user@host
转换 CRLF - LF
1find . -type f | xargs dos2unix
git 记住密码
1git config --global credential.helper store
2# 清空
3git config --global --unset credential.helper
apt 更新忽略某包
1sudo apt-mark hold xxx
2sudo apt-mark unhold xxx
WSL 换 apt 源
1# 首先将原配置文件备份
2sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
3# 然后 VIM 打开,替换
4:%s/security.ubuntu/mirrors.aliyun/g
5:%s/archive.ubuntu/mirrors.aliyun/g
6# 最后更新
7sudo apt update
微信 QQ 关闭 x5 内核
1debugtbs.qq.com
Conda 使用
1# 包管理
2conda update --all / conda update conda
3conda clean --all
4
5conda install pkg_name
6conda install -n env_name pkg_name
7conda remove -n env_name pkg_name
8
9conda list
10conda list -n env_name
11
12conda search pkg_name
13
14# 换源
15conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
16conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
17conda config --set show_channel_urls yes
18
19# 环境管理
20# Doc: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
21conda create --name env_name python=*.*
22conda create --name env_name --clone othher_env # Clone other envs
23conda remove --name env_name --all
24
25conda info -e
26conda info --env
27conda env list
28# These three are equivalent
29
30conda activate env_name
31conda deactivate env_name
32# These only work on conda 4.6 and later versions.
33# For conda versions prior to 4.6, run:
34# Windows: activate or deactivate
35# Linux and macOS: source activate or source deactivate
#tech notes
本文总字数 252
本文阅读量
本站访客量