Skip to content

Instantly share code, notes, and snippets.

Sic Parvis Magna!

Saurabh Kadam saurabhkdm

Sic Parvis Magna!
  • Colgate Palmolive
  • Mumbai
View GitHub Profile
import base64
from json import dumps
from httplib2 import Http
def hello_pubsub(event, context):
"""Triggered from a message on a Cloud Pub/Sub topic.
event (dict): Event payload.
View Dockerfile
FROM node:latest
RUN apt-get update && \
apt-get install -y apt-transport-https && \
curl -s | apt-key add - && \
echo "deb kubernetes-xenial main" >> /etc/apt/sources.list.d/kubernetes.list && \
apt-get update && \
apt-get install -y kubectl
RUN npm install -g yo generator-hubot coffeescript && mkdir /kubot && chown node:node /kubot
RUN chown node:node /home/node/.kube/config
USER node
module.exports = (robot) ->
robot.hear /List pods/i, (res) ->
@exec = require('child_process').exec
command = "kubectl get pods"
res.send("Getting your pods")
@exec command, (error, stdout, stderror) ->
if stdout
res.send "```\n" + stdout + "\n```"
res.send ("Sorry that didn't work")
View telegraf.conf
# Telegraf Configuration
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
saurabhkdm / Airflow.cfg
Created October 19, 2020 09:13
Airflow CFG file for TIG stack
View Airflow.cfg
# The folder where your airflow pipelines live, most likely a
# subfolder in a code repository
# This path must be absolute
dags_folder = /usr/local/airflow/dags
# The folder where airflow should store its log files
# This path must be absolute
base_log_folder = /usr/local/airflow/logs
saurabhkdm / TIGexecutor.yml
Created October 19, 2020 09:09
TIG stack for airlfow..
View TIGexecutor.yml
version: '2.1'
image: 'redis:5.0.5'
command: redis-server --requirepass redispass
image: postgres:9.6

Keybase proof

I hereby claim:

  • I am saurabhkdm on github.
  • I am saurabhkdm ( on keybase.
  • I have a public key ASB9V8GEauZurewto4ploSa_iAuXmKYDoYPc1tGr3ub6iQo

To claim this, I am signing this object: