Skip to content

Instantly share code, notes, and snippets.

View wuhanstudio's full-sized avatar
🎯
Focusing

Han Wu wuhanstudio

🎯
Focusing
View GitHub Profile
# Pull Images
kubeadm config images list |sed -e 's/^/docker pull /g' -e 's#k8s.gcr.io#gcr.azk8s.cn/google_containers#g' |sh -x
# Retag Images
docker images |grep google_containers |awk '{print "docker tag ",$1":"$2,$1":"$2}' |sed -e 's#gcr.azk8s.cn/google_containers#k8s.gcr.io#2' |sh -x
# Remove previous images
docker images |grep google_containers |awk '{print "docker rmi ", $1":"$2}' |sh -x
# Kubeadm
# Outputs from three commands below shall be identical
# CSR
openssl req -in www.wuhanstudio.team.csr -pubkey -noout -outform pem | sha256sum
# Private Key
openssl pkey -in www.wuhanstudio.team.key -pubout -outform pem | sha256sum
# Cert
openssl x509 -in www.wuhanstudio.team.cert -pubkey -noout -outform pem | sha256sum
@wuhanstudio
wuhanstudio / gist:957bc65898661ccb306107d26b05d414
Created December 12, 2019 07:13
SSH port forwarding configuration
# /etc/ssh/sshd_config
# Port forwarding
AllowAgentForwarding yes
AllowTcpForwarding yes
GatewayPorts yes
# X11
X11Forwarding yes
X11UseLocalhost no
@wuhanstudio
wuhanstudio / wpa_supplicant.conf
Created November 14, 2019 02:07
wpa_supplicant configuration for both WPA Personal and WPA Enterprise
update_config=1
country=GB
network={
ssid="YOUR SSID"
psk="YOUR PASSWORD"
key_mgmt=WPA-PSK
}
network={