背景
记录平时学习和开发工程中使用工具的一些备忘点。
正文
用vim时,鼠标右键不能粘贴而是进入了visual模式,解决方法::set mouse-=a
远程jupyter配置
https://juejin.cn/post/7026371559971520525
For Debian / Ubuntu: .deb packages installed by apt and dpkg
For Rocky / Fedora / RHEL: .rpm packages installed by yum
For FreeBSD: .txz packages installed by pkg
ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
Kill PyTorch Distributed Training Processes:
kill $(ps aux | grep YOUR_TRAINING_SCRIPT.py | grep -v grep | awk ‘{print $2}’)
git reset —soft HEAD^ 撤销commit
git reset —hard HEAD^ 撤销add
tokenizing in Unix: “tr” command
分词文件排序和统计
tr -sc ’A-Za-z’ ’\n’ < $file_name| sort | uniq -c
conda:
conda create -n python=3.7 yourenv pip
git find . -name “*.py”|xargs git add —
导出项目依赖:
pip install pipreqs
pipreqs ./ —encoding=utf-8 —force
inside docker container, cannot locate package with apt install:
echo “deb http://archive.debian.org/debian stretch main” > /etc/apt/sources.list
PlotNeuralNet
remote develop
https://devblogs.microsoft.com/python/remote-python-development-in-visual-studio-code/
references”
https://leimao.github.io/blog/Kill-PyTorch-Distributed-Training-Processes/