Skip to content

Instantly share code, notes, and snippets.

@leyafo
Last active January 17, 2022 10:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save leyafo/856fe83d3d7681744b895a66baa62486 to your computer and use it in GitHub Desktop.
Save leyafo/856fe83d3d7681744b895a66baa62486 to your computer and use it in GitHub Desktop.
Remapping Capslock to control on Linux console
#change capslock to ctrl though gnome-tweak-tool
#set manjaro mirros
sudo pacman-mirrors -i -c China -m rank #choose the sources that you want
sudo pacman -Syy
#set http over socks5 in shell
export http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080
#set git socks5
#~/.giconfig
[http]
proxy = socks5h://127.0.0.1:1080 #socks5h means don't resolve the DNS by self.
#set golang China proxy
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
#add existed ssh key
chmod 0400 ~/.ssh/id_rsa*
ssh-add ~/.ssh/id_rsa
#add docker mirrors
- /etc/docker/daemon.json #if this file doesn't exist, create it brefore wite the configuration.
{
"registry-mirrors": [
"https://hub-mirror.c.163.com"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment