Skip to content

Instantly share code, notes, and snippets.

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

Devikiran Khode dkhode

🏠
Working from home
View GitHub Profile
@whoisryosuke
whoisryosuke / Update-branch.md
Created September 17, 2019 17:38 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

@vfarcic
vfarcic / 01-hpa.sh
Last active January 18, 2022 00:53
git clone https://github.com/vfarcic/k8s-specs.git
cd k8s-specs
# Only if NOT EKS or GKE
helm install stable/metrics-server \
--name metrics-server \
--version 2.0.2 \
--namespace metrics
@dims
dims / gist:0bad31d9a0c02e5b1b9d
Created June 9, 2015 23:04
RabbitMQ cheat sheet
rabbitmqctl list_queues
rabbitmqctl cluster_status
rabbitmqctl report
rabbitmqctl status
ls -altr /var/log/rabbitmq/*
@zircote
zircote / init_ansible_role.sh
Last active January 8, 2020 04:54
bash function to create a boilerplate ansible role (I am lazy)
#!/bin/sh
function init_ansible_role {
if [[ ! -n $1 ]]; then
echo no init
return
fi
mkdir -p roles/${1}/{defaults,tasks,files,templates,vars,handlers,meta}
for i in defaults tasks vars handlers meta; do
if [[ ! -f roles/${1}/${i}/main.yaml ]]; then
echo creating file: roles/${1}/${i}/main.yaml