toolnotes

背景

记录平时学习和开发工程中使用工具的一些备忘点。

正文

用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

https://unix.stackexchange.com/questions/743839/apt-get-update-failed-to-fetch-debian-amd64-packages-while-building-dockerfile-f

PlotNeuralNet

https://pub.towardsai.net/creating-stunning-neural-network-visualizations-with-chatgpt-and-plotneuralnet-adab37589e5

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/

Author

s-serenity

Posted on

2023-01-03

Updated on

2023-11-23

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.