Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
drinking from the firehose...

Rupak Ganguly rupakg

😎
drinking from the firehose...
View GitHub Profile
@rupakg
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 https://console.cloud.google.com/ 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
https://istio.io/latest/docs/setup/platform-setup/gke/
export PROJECT_ID=`gcloud config get-value project` && \
@rupakg
rupakg / ckad-bookmarks.html
Created Apr 30, 2020 — forked from runlevl4/ckad-bookmarks.html
CKAD Bookmarks (** indicates example source) [originally sourced from https://github.com/nikhilagrawal577/ckad-notes]
View ckad-bookmarks.html
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1576816453" LAST_MODIFIED="1578776782">CKAD</H3>
<DL><p>
@rupakg
rupakg / nano-shorts.md
Created Feb 26, 2020 — forked from franz-josef-kaiser/nano-shorts.md
nano keyboard shortcuts
View nano-shorts.md

^ = 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
rupakg / s3.sh
Created Dec 30, 2017 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
View s3.sh
# 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 (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@rupakg
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.
cadvisor/marathon.json
{
"id": "cadvisor",
"cpus": 0.1,
"mem": 100,
"disk": 0,
"instances": 8, // equal to number of agent nodes you have
"constraints": [["hostname", "UNIQUE"]],
@rupakg
rupakg / backup-github.sh
Created Oct 5, 2016 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
View backup-github.sh
#!/bin/bash
# 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 https://gist.github.com/darktim/5582423
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
rupakg / BluetoothRestart
Last active Sep 16, 2015 — forked from ajmaradiaga/BluetoothRestart
Force Bluetooth Restart on Mac
View BluetoothRestart
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist
@rupakg
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'
end