Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kiranchavala on github.
  • I am kiranchavala ( on keybase.
  • I have a public key ASB0wltcVttdhmAW6vrdXSuq-CqNOo6Mb99NN1-VVyJYwQo

To claim this, I am signing this object:

kiranchavala / Jekyll
Last active August 14, 2020 07:10
Check the ruby version
kiranchavala@Kirans-MacBook-Pro ~ % ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
gem version
kiranchavala@Kirans-MacBook-Pro ~ % gem -v
kiranchavala /
Created August 14, 2020 07:53 — forked from Kavithvajen/
Z Shell (zsh) script to manage a Hugo site hosted on GitHub Pages. YouTube Link:
vared -p "Enter commit message: " -c message
printf "\e[33m\nBuilding project...\e[39m\n"
hugo -d ../
printf "\\e[33m\nPushing to repository...\e[39m\n\n"
cd ../
git add .
# 1. Create 4 VMs - master(1) and worker(3) nodes
Node Reqs (varies depending on usage)
Master: 2 vCPUs - 6GB Ram
Worker: 1 vCPUs - 3GB RAM
curl -sLS | sudo sh
ark --help
arkade info openfaas
arkade install openfaas
kubectl -n openfaas get deployments -l "release=openfaas, app=openfaas"
curl -SLsf | sudo sh
kubectl rollout status -n openfaas deploy/gateway
kubectl port-forward --address -n openfaas svc/gateway 8080:8080 &
PASSWORD=$(kubectl get secret -n openfaas basic-auth -o jsonpath="{.data.basic-auth-password}" | base64 --decode; echo)
echo -n $PASSWORD | faas-cli login --username admin --password-stdin
kiranchavala / k3sinstallation
Created August 26, 2020 08:24
k3s installation
curl -sfL | sh -
k3s kubectl get nodes
The kubeconfig is stored at
cat /etc/rancher/k3s/k3s.yaml
To join other nodes to the cluster
kiranchavala / k9s
Created August 26, 2020 09:34
k9s installation
k9s is an excellent cli tool to interact with the kubernetes clusters
brew install derailed/k9s/k9s
kiranchavala / spotify songs download
Last active July 5, 2021 16:08
spotify songs download
Install youtube-dl
brew install youtube-dl
Install ffmpeg for mp3 conversion
brew install ffmpeg
Installing spotify dl
kiranchavala / Installing Rancher and RKE
Last active March 28, 2023 15:13
Installing Rancher and RKE
Installing RKE and Rancher
Ubuntu 20.04
1 vim /etc/ssh/sshd_config
2 systemctl restart sshd
3 sudo apt-get update
4 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
5 curl -fsSL | sudo apt-key add -
6 sudo add-apt-repository "deb [arch=amd64] \