Skip to content

Instantly share code, notes, and snippets.

drinking from the firehose...

Rupak Ganguly rupakg

drinking from the firehose...
View GitHub Profile
rupakg / [1.A] Steps for GKE
Created Mar 24, 2021 — forked from lucasponce/[1.A] Steps for GKE
Istio Cookbook: Kiali Recipe
View [1.A] Steps for GKE
[1] Open with your gmail account
[2] Create a Project / Choose a Project you have access to.
[3] Activate "Cloud Shell"
[4] Prepare a GKE cluster using
export PROJECT_ID=`gcloud config get-value project` && \
rupakg / ckad-bookmarks.html
Created Apr 30, 2020 — forked from runlevl4/ckad-bookmarks.html
CKAD Bookmarks (** indicates example source) [originally sourced from]
View ckad-bookmarks.html
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<DT><H3 ADD_DATE="1576816453" LAST_MODIFIED="1578776782">CKAD</H3>
rupakg /
Created Feb 26, 2020 — forked from franz-josef-kaiser/
nano keyboard shortcuts

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
View Restore backup db to MongoDB Docker Container
docker container id - 8c37a950839a
# Make sure that the `/var/backups` folder is clean inside the container
# 1. Copy Mongo dump to container folder
(Local System)$ docker cp dump/reaction 8c37a950839a:/var/backups
# 2. Connect to mongodb docker container
(Local System)$ docker exec -it 8c37a950839a /bin/bash
rupakg /
Created Dec 30, 2017 — forked from chrismdp/
Uploading to S3 in 18 lines of Shell (used to upload builds for
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (
# Based on a modified script from here:
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
rupakg / mesos_cadvisor_prometheus_grafana
Created Dec 7, 2016 — forked from charlesmims/mesos_cadvisor_prometheus_grafana
monitoring docker containers in mesos with prometheus and cadvisor and grafana
View mesos_cadvisor_prometheus_grafana
# This marathon.json deploys cadvisor to each node and exposes it on port 3002.
"id": "cadvisor",
"cpus": 0.1,
"mem": 100,
"disk": 0,
"instances": 8, // equal to number of agent nodes you have
"constraints": [["hostname", "UNIQUE"]],
rupakg /
Created Oct 5, 2016 — forked from rodw/
A simple script to backup an organization's GitHub repositories, wikis and issues.
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
rupakg / BluetoothRestart
Last active Sep 16, 2015 — forked from ajmaradiaga/BluetoothRestart
Force Bluetooth Restart on Mac
View BluetoothRestart
sudo launchctl unload /System/Library/LaunchDaemons/
sudo launchctl load /System/Library/LaunchDaemons/
rupakg / Gemfile
Created Nov 12, 2011 — forked from therealadam/Gemfile
An example of how to authorize your app with Punchtab's OAuth2 API
View Gemfile
source :rubygems
gem 'sinatra', '1.0'
gem 'oauth2'
gem 'json'
group :development do
gem 'shotgun'