Skip to content

Instantly share code, notes, and snippets.

View sentinelleader's full-sized avatar

Deepak Mohandas sentinelleader

View GitHub Profile
@sentinelleader
sentinelleader / munin-graphite.rb
Created September 11, 2012 17:08
munin-graphite
#!/usr/bin/env ruby
#
# graphite-mdash client - build ontop of munin-graphite
#
# Copyright: Copyright (c) 2012, Jonas Genannt <[email protected]>
#
# Author:: Adam Jacob (<[email protected]>)
# Copyright:: Copyright (c) 2008 HJK Solutions, LLC
# License:: GNU General Public License version 2 or later
#
#! /bin/bash
#
# This script needs "fpm". If you dont have it,
# run "gem install fpm"
#
# You also need to "apt-get install python-setuptools" (otherwise fpm fails)
clean() {
rm -rf whisper-0.9.9 carbon-0.9.9 graphite-web-0.9.9
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI)
# This should be performed as root since it's going to be installing a bunch of stuff
# --- Update things to make sure we have the latest patches ---
# Add EPEL so we can get reasonably recent packages
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# --- Install all the packages --- #
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached
/*
*
* To enable this backend, include './backends/riemann' in the backends
* configuration array:
*
* Requires Riemann Node client
*
* backends: ['./backends/riemann']
*
*/
#! /usr/bin/ruby
require 'net/ssh'
user_name = ARGV[0]
if user_name == NIL
abort("No username mentioned. command should run like ---> account_call_details.rb {plivo username}")
else
cmd_format_userid = %q(psql -U postgres plivo_cloud -F, --no-align -c "select id from auth_user where username=')
cmd_userid = cmd_format_userid + user_name + %q(';" | grep -v id | grep -v row)
@sentinelleader
sentinelleader / keybase.md
Created December 5, 2014 08:36
keybase.md

Keybase proof

I hereby claim:

  • I am deepakmdass88 on github.
  • I am deepakmdass88 (https://keybase.io/deepakmdass88) on keybase.
  • I have a public key whose fingerprint is 833D E36D 021F 47A5 4288 E1CC C77C EE24 9379 FD6B

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sentinelleader on github.
  • I am deepakmdass88 (https://keybase.io/deepakmdass88) on keybase.
  • I have a public key whose fingerprint is 833D E36D 021F 47A5 4288 E1CC C77C EE24 9379 FD6B

To claim this, I am signing this object:

---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@sentinelleader
sentinelleader / rmq-publish-with-header.c
Last active August 29, 2015 14:23
rmq-publish-with-header.c for Mosquitto MQTT broker
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <clem_rmq.h>
#include <assert.h>
#include <amqp_tcp_socket.h>
#include <amqp.h>
@sentinelleader
sentinelleader / snowden-ietf93.md
Last active August 29, 2015 14:27 — forked from mnot/snowden-ietf93.md
Transcript of Edward Snowden's comments at IETF93.