Skip to content

Instantly share code, notes, and snippets.

View sakurai-youhei's full-sized avatar

Youhei Sakurai sakurai-youhei

  • Kobe, Japan
View GitHub Profile
@sakurai-youhei
sakurai-youhei / kcfork-kcback.sh
Last active November 5, 2022 14:46
Aliases to start/end an isolated session on a temporal config for kubectl
alias kcfork='install -m 600 $HOME/.kube/config $HOME/.kube/config-PID$$; export KUBECONFIG=$HOME/.kube/config-PID$$'
alias kcback='rm -f $HOME/.kube/config-PID$$; unset KUBECONFIG'
# You can start an isolated session on a temporal config by `kcfork`, do whatever you want like switching contexts, and end the session by `kcback`.
@sakurai-youhei
sakurai-youhei / keybase.md
Created September 11, 2024 04:12
keybase.md

Keybase proof

I hereby claim:

  • I am sakurai-youhei on github.
  • I am youheisakurai (https://keybase.io/youheisakurai) on keybase.
  • I have a public key whose fingerprint is 1FE2 AFDC 87AB FB9E EA88 C634 D985 9D02 813D F63D

To claim this, I am signing this object: