- 上传Github
- 上传Github大文件(release)
- POWERSHELL(管理员) 创建软连接
- 代理服务器设置
- Ubuntu anaconda环境变量设置
- Ubuntu cuda环境变量设置
- 换conda清华源
- 换pip清华源
- Ubuntu22.04 开启3389端口远程连接
- vscode python调试功能的launch.json配置设置
- vscode python调试功能的settings.json配置设置
- linux配置免密登录
- screen命令 挂起窗口
- nignx正向代理配置
- windows指令
上传Github
配置信息
1 | git config user.name "您的名字" |
初始化Git
1 | git init |
添加文件
1 | git add . |
提交
1 | git commit -m "Initial commit: code" |
添加远程仓库(替换为您的仓库地址)
1 | git remote add origin https://github.com/您的用户名/仓库名.git |
例如
1 | git remote add origin https://github.com/chandlerye/仓库名.git |
推送代码
1 | git branch -M main |
上传Github大文件(release)
使用 winget
1 | winget install --id GitHub.cli |
安装完成后,重新打开终端,然后:
1 | gh auth login |
POWERSHELL(管理员) 创建软连接
1 | New-Item -ItemType SymbolicLink -Path |
代理服务器设置
windows
1 | set HTTP_PROXY=http://127.0.0.1:7890 |
ubuntu
1 | export http_proxy=socks5://127.0.0.1:1080 |
Ubuntu anaconda环境变量设置
1 | sudo gedit ~/.bashrc |
Ubuntu cuda环境变量设置
1 | sudo nano ~/.bashrc |
换conda清华源
1 | conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ |
换pip清华源
1 | pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple |
Ubuntu22.04 开启3389端口远程连接
1 | firewall-cmd --add-port=3389/tcp --permanent |
vscode python调试功能的launch.json配置设置
参数配置
工作区Python路径设置
1 | { |
vscode python调试功能的settings.json配置设置
1 | { |
linux配置免密登录
本机运行
1 | ssh-keygen -t rsa |
将本机.SSH文件夹下的id_rsa.pub追加到远程主机.ssh文件夹下的authorized_keys文件中
1 | cat id_rsa.pub >> authorized_keys |
screen命令 挂起窗口
1 | # 新建窗口 |
nignx正向代理配置
1 | #正向代理转发http请求 |
windows指令
Windows转发wsl
1 | netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=7777 connectaddress=localhost connectport=8888 |