Skip to content

Instantly share code, notes, and snippets.

View chandankumar4's full-sized avatar

Chandan Kumar chandankumar4

  • Bangalore
  • 22:32 (UTC +05:30)
View GitHub Profile
chandankumar4 / Vagrantfile
Created May 8, 2020 07:31
Setup the vagrant cluster in ubuntu with one master and two workers
# -*- mode: ruby -*-
# vi: set ft=ruby :
servers = [
:name => "k8s-master",
:type => "master",
:box => "ubuntu/xenial64",
:box_version => "20180831.0.0",
:eth1 => "",
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
chandankumar4 / metric-server.yaml
Created June 17, 2019 19:56
Deploy metric server
apiVersion: v1
kind: ServiceAccount
name: metrics-server
namespace: kube-system
kind: ClusterRoleBinding
# update
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install curl -y
sudo apt-get install wget -y
# Install vs code
curl | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] stable main" > /etc/apt/sources.list.d/vscode.list'
package main
import (
# Install PostSql (Ubuntu)
sudo apt-get install postgresql postgresql-contrib
# Delete PostSql (Ubuntu)
dpkg -l | grep postgres
sudo apt-get remove --purge postgresql postgresql-9.5 postgresql-client-9.5 postgresql-client-common postgresql-common postgresql-contrib postgresql-contrib-9.5
rm -r /etc/postgresql/

Installation of Phoenix on Ubuntu 16.04

  • Don't use the Ubuntu packages provided, instead:
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang elixir

To install the module for the RTL8723DE chipset, first determine your kernel using uname -r if your kernel is lower than 4.11, do

sudo apt-get install build-essential dkms git
git clone -b 4.10-down
sudo dkms add ./rtl8723de
sudo dkms install rtl8723de/

Then reboot

chandankumar4 / Useful
Last active May 26, 2019 06:54
Minikube and Docker

Install minikube and Docker

sudo apt-get install
sudo usermod -a -G docker $USER

curl -LO$(curl -s

chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl