Skip to content

Instantly share code, notes, and snippets.

@Harold2017
Created April 21, 2019 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Harold2017/aba2b2163c5fe959ab1e02a7e7c293bb to your computer and use it in GitHub Desktop.
Save Harold2017/aba2b2163c5fe959ab1e02a7e7c293bb to your computer and use it in GitHub Desktop.
terminal with ss

add alias function to ~/.zshrc

# proxy list
proxy() {
  export all_proxy=socks5://127.0.0.1:1086
  export http_proxy=http://127.0.0.1:1087
  export https_proxy=http://127.0.0.1:1087
}  
unproxy() {
  unset all_proxy                                                         
  unset http_proxy
  unset https_proxy
}

# reload
source ~/.zshrc

# call proxy in terminal
proxy

# check
curl cip.cc

set proxy in IntelliJ

preferences -> system settings -> http proxy

manual proxy configuration

http or socks host name: 127.0.0.1 port number: 1086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment