This repository was archived by the owner on Aug 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
4. Reference
Jeffrey edited this page Mar 23, 2023
·
22 revisions
- neovim options
- lua api
- guide
- vim tips
- vim cheatshit
- learn vim the hard way
- vimfied
- vimdoc
- vim-be-good
- lazyvim
- gruvbox-material
- gruvbox
cpanm -n App::cpanminus --mirror http://mirrors.163.com/cpan --mirror-onlynpm config rm registry
npm config set proxy=http://127.0.0.1:7890
npm config set https-proxy http://127.0.0.1:7890
npm config list
# 如果需要取消代理
npm config delete proxy
npm config delete https-proxygem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/[http "https://github.com"]
# no need to setup https for github
# http proxy
proxy = http://127.0.0.1:7890
# or can use socks5 proxy
#proxy = socks5://127.0.0.1:7891
[https]
proxy = https://127.0.0.1:7890
#https://raw.githubusercontent.com/double12gzh/dotfiles/main/ssh/.ssh/config
#https://raw.githubusercontent.com/double12gzh/dotfiles/main/git/.config/git/config
#https://gist.github.com/laispace/666dd7b27e9116faece6
https://stackoverflow.com/questions/70603564/windows-ssh-proxycommand-usr-bin-bash-line-0-exec-nc-not-found-on-git-bashadd the following to ~/.ssh/config and run cmd ssh -vvv -T git@github.com with debug
Host github.com
User git
Port 443
Hostname ssh.github.com
# http proxy
#ProxyCommand connect -S 127.0.0.1:7890 %h %p
#socks5 proxy
ProxyCommand nc -X 5 -x 127.0.0.1:7891 %h %p
IdentityFile ~/.ssh/id_rsa
TCPKeepAlive yes
Host ssh.github.com
User git
Port 443
Hostname ssh.github.com
TCPKeepAlive yes
IdentityFile ~/.ssh/id_rsa
PreferredAuthentications publickey
# http proxy
#ProxyCommand connect -S 127.0.0.1:7890 %h %p
#socks5 proxy
ProxyCommand nc -X 5 -x 127.0.0.1:7891 %h %p
Host *
# 共享连接
ControlMaster auto
# 与上述 ControlMaster 同时使用时,指定连接共享的路径
ControlPath ~/.ssh/master-%r@%h:%p
# 在后台保持打开
ControlPersist yes
ServerAliveInterval 60
IdentityFile ~/.ssh/id_rsa
HostKeyAlgorithms +ssh-dss
# http proxy
#ProxyCommand connect -S 127.0.0.1:7890 %h %p
#socks5 proxy
ProxyCommand nc -X 5 -x 127.0.0.1:7891 %h %p
# http://man.openbsd.org/ssh_config.5
# https://gist.github.com/laispace/666dd7b27e9116faece6
# https://gist.github.com/evantoli/f8c23a37eb3558ab8765