Skip to content

Instantly share code, notes, and snippets.

View zackzhangkai's full-sized avatar
🏠
Working from home

zackzhangkai zackzhangkai

🏠
Working from home
View GitHub Profile
@yougg
yougg / proxy.md
Last active July 28, 2024 22:27
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@yowu
yowu / HttpProxy.go
Last active July 24, 2024 18:03
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)