Skip to content

Instantly share code, notes, and snippets.

View bhang's full-sized avatar
👁️
🔎 🐛 🐛

Shubhang Mani bhang

👁️
🔎 🐛 🐛
View GitHub Profile
@bhang
bhang / graphite_gunicorn_nginx.conf
Created June 27, 2012 13:09
nginx Configuration for gunicorn + graphite
worker_processes 1;
user nobody nogroup;
pid /var/run/nginx.pid;
error_log /var/log/nginx/error.log;
events {
worker_connections 64;
}
@bhang
bhang / install_graphite_statsd_ubuntu_precise.sh
Created May 15, 2012 17:41
Install Graphite and statsd on Ubuntu 12.04 LTS (Precise Pangolin)
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install git to get statsd
sudo apt-get install git
@bhang
bhang / KinveyCollection.js
Created March 12, 2012 20:05
KinveyCollection
// Credentials for use with Kinvey
// NOTE: This example shows passing in the master secret.
// In a production environment, these credentials should be protected i.e.
// they should be requested from the user or secured via a login screen
var kinvey_app_key = 'kidxxxx';
var kinvey_secret = 'master secret';
// Modified sync to add authorization header for use with Kinvey
var authenticatedKinveySync = function(method, model, options) {