Skip to content

Instantly share code, notes, and snippets.

View faraazkhan's full-sized avatar
🏠
Working from home

Faraaz Khan faraazkhan

🏠
Working from home
View GitHub Profile
@faraazkhan
faraazkhan / Capistrano-Deployment-Recipe.rb
Created October 2, 2012 03:31 — forked from mrrooijen/Capistrano-Deployment-Recipe.rb
a "base" Capistrano Rails Deployment Recipe. Use it to deploy your Rails application. It is also easily expandable. So feel free to grab this Recipe and add your own tasks/customization!
# Guide
# Configure the essential configurations below and do the following:
#
# Repository Creation:
# cap deploy:repository:create
# git add .
# git commit -am "initial commit"
# git push origin master
#
# Initial Deployment:
@faraazkhan
faraazkhan / kubectl.md
Created March 30, 2018 16:43 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@faraazkhan
faraazkhan / kubectl.md
Created March 30, 2018 16:43 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@faraazkhan
faraazkhan / load-ipvs.sh
Created April 1, 2018 02:48 — forked from jsvisa/load-ipvs.sh
load-ipvs.sh
#!/bin/bash
# Author: Delweng Zheng <delweng@gmail.com>
if $(lsmod | grep -q "ip_vs"); then
exit 0
fi
if [ -f /etc/redhat-release ]; then
RELEASE="centos"
elif cat /etc/issue | grep -Eqi "debian"; then