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
@zackzhangkai
zackzhangkai / proxy.md
Created November 9, 2021 03:02 — forked from yougg/proxy.md
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)
@zackzhangkai
zackzhangkai / k3s_helm_install.sh
Last active May 30, 2022 07:02 — forked from icebob/k3s_helm_install.sh
K3S + Helm installing
# Install K3S
curl -sfL https://get.k3s.io | sh -
# Copy k3s config
mkdir $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
sudo chmod 644 $HOME/.kube/config
# Check K3S
kubectl get pods -n kube-system