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:
input := "Hello World" | |
sha512Instance := sha512.New() | |
sha512Instance.Write([]byte(input)) | |
fmt.Printf("sha512:\t\t%x\n", sha512Instance.Sum(nil)) |
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 | |
} | |
} |
plainText := "Hello World" | |
plainTextBytes := []byte(plainText) | |
cipherText := base64.StdEncoding.EncodeToString(plainTextBytes) | |
fmt.Println(cipherText) | |
// Output: SGVsbG8gV29ybGQ= |
I hereby claim:
To claim this, I am signing this object:
# 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> |
# 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 |
# To delete all the deployments | |
kubectl get deployments --namespace default -o jsonpath="{.items[*].metadata.name}" | xargs kubectl delete deployment |
# 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. |
Reference: https://prakhar.me/docker-curriculum/#busybox | |
# Run a static website in background. d - detach mode, P - expose all ports, --name give name to the running container | |
docker run -d -P --name static-site prakhar1989/static-site | |
# To see the ports used | |
docker port static-site | |
# Docker networks |