Skip to content

Instantly share code, notes, and snippets.

View gnalawade's full-sized avatar

Ganesh Nalawade gnalawade

  • LiveVox Inc
  • United States
View GitHub Profile
@gnalawade
gnalawade / queue-reset-filter.bash
Created December 18, 2020 19:05 — forked from brickdixon/queue-reset-filter.bash
QPID: Recreate Queues with Topic Filtering
#!/bin/bash
set -x
#Stop Katello/Satellite services
katello-service stop
CERT=/etc/pki/katello/certs/katello-apache.crt
KEY=/etc/pki/katello/private/katello-apache.key
@gnalawade
gnalawade / install.sh
Created March 4, 2020 01:28 — forked from random-robbie/install.sh
Install helm for kubernetes on centos 7
#!/bin/bash
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.12.2-linux-amd64.tar.gz
tar -zxvf helm-v2.12.2-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl create namespace kubeapps
helm install --name kubeapps --namespace kubeapps bitnami/kubeapps
@gnalawade
gnalawade / Link Keybase.md
Created September 11, 2019 04:09
Keybase
@gnalawade
gnalawade / gist:572475e7803ce214a236c00c890475ac
Created April 4, 2019 20:44 — forked from Ray33/gist:ba189a729d81babc99d7cef0fb6fbcd8
Amazon Elastic Network Adapter (ENA) on CentOS 7
sudo su
yum --enablerepo=extras install epel-release
yum -y install patch dkms kernel-devel perl
yum update
reboot
###############Update kernel START###################
Update to latest kernel - optional
@gnalawade
gnalawade / gist:ee731905242c3a39f47866975c3808c2
Created April 4, 2019 20:44 — forked from kwilczynski/gist:36914ee29e31f7dbd27b4f6742dc96b3
Amazon Elastic Network Adapter (ENA) on CentOS 6
yum -y install patch dkms kernel-devel
wget https://github.com/amzn/amzn-drivers/archive/ena_linux_1.1.3.tar.gz
tar zxvf ena_linux_1.1.3.tar.gz -C /usr/src/
mv /usr/src/amzn-drivers-ena_linux_1.1.3 /usr/src/ena-1.1.3
cat <<EOF > /usr/src/ena-1.1.3/dkms.conf
PACKAGE_NAME="ena"
PACKAGE_VERSION="1.1.3"
AUTOINSTALL="yes"
@gnalawade
gnalawade / update-route53.sh
Created August 25, 2017 06:49 — forked from phybros/update-route53.sh
BASH Script to keep Route53 updated with your current external IP address
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="enter zone id here"
# The CNAME you want to update e.g. hello.example.com
#!/usr/bin/env python
# This is a trick, to output the bash commands we need to run in shell, and just execute this script inside an eval within our shell, so it imports what we need
# Possibly tie this in with https://gist.github.com/mbainter/b38a4cb411c0b5c1bae6 for MFA support
# Will need to durably store MFA access tokens, possibly in some other env vars
# Could also store all different keys/info in different vars, to reuse as needed (lots of env vars though, file may be better)
import os
import sys
import getpass