Skip to content

Instantly share code, notes, and snippets.

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

Shubhang Mani bhang

👁️
🔎 🐛 🐛
View GitHub Profile
@bhang
bhang / install-openresty.sh
Created May 9, 2016 14:20
Lua HMAC authentication
$ brew tap killercup/homebrew-openresty
$ brew install ngx_openresty
@bhang
bhang / disable-netflix-pauses.js
Created October 8, 2015 14:12 — forked from coopermaruyama/disable-netflix-pauses.js
Netflix: Disable "Are you still watching?" pauses
// 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);
possibleButtons[i].dispatchEvent(event);
}
@bhang
bhang / googleSpreadsheetToKinvey.js
Last active December 24, 2015 22:09 — forked from EchoAbstract/googleSpreadsheetToKinvey.js
Added the missing updateApp function
function updateApp(){
readRowsHelper();
};
function getKinveyParameters(){
return {
kinvey_app_id: " YOUR APP ID ",
kinvey_master_secret: " YOUR MASTER SECRET "
};
};

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
@bhang
bhang / setup.sh
Last active December 15, 2015 08:09 — forked from duggan/setup.sh
#!/bin/bash
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
@bhang
bhang / install.sh
Last active December 15, 2015 08:08 — forked from duggan/install.sh
#!/bin/bash
NICKNAME="bhangm"
# Setup Supervisor
echo "[program:warrior]
command=run-pipeline --concurrent 2 /home/ubuntu/yahoomessages-grab/pipeline.py $NICKNAME
numprocs=1" \
> /etc/supervisor/conf.d/warrior.conf
#!/bin/bash
#
# 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 http://bit.ly/MeGwjD for more information!
#
# If you are forking this for your own custom configuration script, see the following other gists:
# https://gist.github.com/3071737