I hereby claim:
- I am worldofprasanna on github.
- I am worldofprasanna (https://keybase.io/worldofprasanna) on keybase.
- I have a public key ASAOPCbafRrvnqn7HeVnyY-sUuhIPV5R8qz2bgTbeqREigo
To claim this, I am signing this object:
| # Start minikube cluster in local | |
| minikube start | |
| # optionally start with cpu s and memory | |
| minikube start --cpus=4 --memory=4096 | |
| # to change the docker machine to point to the kubernetes cluster | |
| eval $(minikube docker-env) | |
| # Note: Kubernetes supports docker version - 1.11.1. |
| # To delete all the deployments | |
| kubectl get deployments --namespace default -o jsonpath="{.items[*].metadata.name}" | xargs kubectl delete deployment |
| # Indicate whether user is in Normal / Insert mode | |
| function zle-line-init zle-keymap-select { | |
| VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}" | |
| RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1" | |
| zle reset-prompt | |
| } | |
| set -o vi | |
| zle -N zle-line-init |
| # Install jekyll | |
| gem install jekyll bundler | |
| # Create new site and serve it | |
| jekyll new crescent-college-website | |
| cd crescent-college-website | |
| jekyll serve | |
| # git commands | |
| git clone <repo-url> |
I hereby claim:
To claim this, I am signing this object:
| plainText := "Hello World" | |
| plainTextBytes := []byte(plainText) | |
| cipherText := base64.StdEncoding.EncodeToString(plainTextBytes) | |
| fmt.Println(cipherText) | |
| // Output: SGVsbG8gV29ybGQ= |
| key := "Symmetric Key" // | |
| func getGCM() { | |
| if block, err := aes.NewCipher(key); err != nil { | |
| return nil, err | |
| } else if gcm, err := cipher.NewGCM(block); err != nil { | |
| return nil, err | |
| } else { | |
| return gcm, nil | |
| } | |
| } |
| input := "Hello World" | |
| sha512Instance := sha512.New() | |
| sha512Instance.Write([]byte(input)) | |
| fmt.Printf("sha512:\t\t%x\n", sha512Instance.Sum(nil)) |
| # Functions with ? | |
| a = 0 | |
| a.zero? | |
| a.nil? | |
| # Loop statement | |
| 10.times do | |
| puts "Hello Ruby !!!" | |
| end |
| # tig configuration | |
| set main-view-author-display = full | |
| set main-view-date-display = relative | |
| set split-view-width = 80% |