zsdonghao / research-and-coding

研究资源列表 A curated list of research resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some tips for research and coding

欢迎大家一起丰富内容~~~😄

0. 论文列表

1. 科研起步

必读文章

信息收集

其他

2. Github

  • Github历史和目的
  • 创建账号
  • 建立Repository
  • git init 初始化
  • 随便添加一个.txt文件
  • git diff 查看当前本地修改了什么
  • git diff xxx 查看xxx里面修改了什么
  • git add xxx.txt 添加xxx.txt到git
  • git add -A 添加所有文件到git
  • git commit -m "hahahah" 添加注释
  • git push 上传更新
  • git clone https://github.com/account/repository.git
  • git status 查询状态
  • 如何在网站上修改
  • git pull 与Github同步
  • git branch 查看branch
  • git branch -a 查看所有branch
  • git branch new 创建branch名为new
  • git checkout new 进入new branch
  • git checkout master 返回主branch
  • git checkout -b new2 创建并进入branch名为new2
  • 修改branch后,commit到Github上,如何在github上发起Push Request
  • .gitignore 自定义不能被添加的文件
  • 添加collaborator
  • 新建organization
  • 练习:建立自己的个人主页 我的例子

3. 其他Coding

4. GPU

  • 目的
  • nvidia-smi 查看GPU使用情况
  • watch -n 1 nvidia-smi:每秒钟刷新GPU使用情况
  • sudo fuser -v /dev/nvidia* 查看GPU使用者
  • sudo kill -9 PID 杀掉进程
  • CUDA_VISIBLE_DEVICES=0 python xxx.py 指定GPU0
  • CUDA_VISIBLE_DEVICES=0,1 python xxx.py 指定GPU0和1
  • CUDA_VISIBLE_DEVICES=“” python xxx.py 不使用GPU
  • python xxx.py > train.log & 把输出放入train.log(>); 不显示输出(&)
  • CPU & GPU
  • top
  • htop

5. Screen

  • 目的:关闭当前Terminal/命令窗口,程序依然进行。
  • screen -S name 创建screen,并进入
  • screen -ls 查看screen列表
  • screen -r name 进入screen
  • ctrl+A+D 退出当前screen
  • screen -d name 关闭screen
  • screen -X -S name kill 删除screen

6. Virtualenv

  • 目的
  • Installation
  • pip3 install virtualenv 安装virtualenv
  • virtualenv env 新建环境
  • source env/bin/activate 进入环境
  • deactivate 退出环境

7. 文档

8. 远程连接

9. TensorLayer

10. Machine Learning / System / ...

11. Publishing Paper

About

研究资源列表 A curated list of research resources