Skip to content

Instantly share code, notes, and snippets.

🔎 🐛 🐛

Shubhang Mani bhang

🔎 🐛 🐛
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bhang on github.
  • I am bhangm ( on keybase.
  • I have a public key ASCrcRPncsaakaTEeVlzWz9euMYUU5afbPZY2lDQAqkm9Qo

To claim this, I am signing this object:

bhang /
Created May 9, 2016
Lua HMAC authentication
$ brew tap killercup/homebrew-openresty
$ brew install ngx_openresty
bhang / disable-netflix-pauses.js
Created Oct 8, 2015 — forked from coopermaruyama/disable-netflix-pauses.js
Netflix: Disable "Are you still watching?" pauses
View disable-netflix-pauses.js
// copy/paste into chrome console (alt+cmd+J) after the video starts playing.
setInterval(function() {
var possibleButtons = document.getElementsByClassName('continue-playing');
if (possibleButtons.length) {
for (var i = 0; i < possibleButtons.length; i++) {
if (/Continue Playing/.test(possibleButtons[i].textContent)) {
var event = document.createEvent('HTMLEvents');
event.initEvent('click', true, false);
bhang / googleSpreadsheetToKinvey.js
Last active Dec 24, 2015 — forked from EchoAbstract/googleSpreadsheetToKinvey.js
Added the missing updateApp function
View googleSpreadsheetToKinvey.js
function updateApp(){
function getKinveyParameters(){
return {
kinvey_app_id: " YOUR APP ID ",
kinvey_master_secret: " YOUR MASTER SECRET "
bhang / upgrade_foo.yml
Last active Dec 21, 2015
Example of ec2_elb usage re: Issue #3849 (ansible)
View upgrade_foo.yml
# Deploys a new version of foo
- name: Deploy new version of foo
hosts: tag_type_appserver:&tag_stage_prod
user: ubuntu
sudo: true
gather_facts: false
serial: 1

Debugging & Profiling Node.js

This is a maintained listing of all the different ways to debug and profile Node.js applications. If there is something missing or an improvement, post a comment! :)

Interactive Stack Traces with traceGL - Shareware

  1. Guide here
set -o nounset
set -o errexit
set -o xtrace
# Install dependencies
apt-get update
apt-get install -y build-essential lua5.1 liblua5.1-0-dev python python-setuptools python-dev git-core openssl libssl-dev python-pip rsync gcc make git supervisor
pip install seesaw
# Setup Supervisor
echo "[program:warrior]
command=run-pipeline --concurrent 2 /home/ubuntu/yahoomessages-grab/ $NICKNAME
numprocs=1" \
> /etc/supervisor/conf.d/warrior.conf
# Shell script to automatically configure a new Flask, nginx and uWSGI based blog
# on an Amazon EC2 instance.
# [Note]: modified to run on Ubuntu 12.04
# See for more information!
# If you are forking this for your own custom configuration script, see the following other gists:
bhang / supervisord_graphite_statsd.conf
Created Jun 27, 2012
Graphite + statsd supervisord configuration
View supervisord_graphite_statsd.conf
command=/usr/local/bin/gunicorn_django -u www-data -g www-data -b --log-file=/opt/graphite/storage/log/webapp/gunicorn.log /opt/graphite/webapp/graphite/
command=python /opt/graphite/bin/ --debug start