Skip to content
HOA PHAN edited this page Nov 12, 2023 · 22 revisions
alias jn='jx ns'
alias jnc='jx ns conductor'
alias jns='jx ns streamtech'

alias k='kubectl'
alias k_list_all_resources='kubectl api-resources |sort -k1'
alias kg='kubectl get'
alias kd='kubectl describe'
alias ke='kubectl exec '
alias kei='kubectl exec -it '
alias kl='k logs '
alias klf='k logs -f '
alias kdns='k delete ns '
alias knsc='k get ns|grep netflix-conductor'
alias knsa='k get ns -A'
alias ked='k edit deployment '

alias kr='kubectl api-resources'
alias kallpod='kubectl get pods -A'
alias pod='k get pod --sort-by=.status.startTime'
alias ing='k get ing'
alias dep='k get deployment'
alias ns='k get ns'
alias podsl='k get pod --show-labels'
alias svc='k get svc'
alias kgetYaml='k get -o yaml'
alias kpfw='k port-forward'
alias krestart='kubectl rollout restart deployment '

alias grm='git pull --rebase origin '
alias gustag='git fetch upstream --tags'
alias grsmain='git reset --hard origin/main'

alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias sub=subl
alias zshrc='sub ~/.zshrc'

han(){
	open -a "Google Chrome"  'https://github.com/s50600822/Notes/wiki/Hanzi-%E2%80%90-Mandarin'
}

#launch link from various browser
openLink() {
    local link="$1"
    open -a "Google Chrome" "$link"
    open -a "Safari" "$link"
    open -a "Opera" "$link"
    open -a "Brave Browser" "$link"
}


eye

Clone this wiki locally