Skip to content

Instantly share code, notes, and snippets.

@kiranchavala
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
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
Ref:
https://k9scli.io/topics/install/
https://k9scli.io/
@kiranchavala
kiranchavala / k3sinstallation
Created August 26, 2020 08:24
k3s installation
curl -sfL https://get.k3s.io | sh -
k3s kubectl get nodes
The kubeconfig is stored at
cat /etc/rancher/k3s/k3s.yaml
To join other nodes to the cluster
curl -sLS https://dl.get-arkade.dev | sudo sh
ark --help
arkade info openfaas
arkade install openfaas
kubectl -n openfaas get deployments -l "release=openfaas, app=openfaas"
curl -SLsf https://cli.openfaas.com | sudo sh
kubectl rollout status -n openfaas deploy/gateway
kubectl port-forward --address 0.0.0.0 -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
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 https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
6 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
*********************************************************************************************
# 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
OS: CentOS/RHEL 7
@kiranchavala
kiranchavala / deploy.sh
Created August 14, 2020 07:53 — forked from Kavithvajen/deploy.sh
Z Shell (zsh) script to manage a Hugo site hosted on GitHub Pages. YouTube Link: https://youtu.be/5TrMF_aFa5E
#!/bin/zsh
vared -p "Enter commit message: " -c message
printf "\e[33m\nBuilding project...\e[39m\n"
hugo -d ../YOUR_GITHUB_USERNAME.github.io
printf "\\e[33m\nPushing to YOUR_GITHUB_USERNAME.github.io repository...\e[39m\n\n"
cd ../YOUR_GITHUB_USERNAME.github.io
git add .
@kiranchavala
kiranchavala / Jekyll
Last active August 14, 2020 07:10
jekyll.md
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
3.0.3

Keybase proof

I hereby claim:

  • I am kiranchavala on github.
  • I am kiranchavala (https://keybase.io/kiranchavala) on keybase.
  • I have a public key ASB0wltcVttdhmAW6vrdXSuq-CqNOo6Mb99NN1-VVyJYwQo

To claim this, I am signing this object: