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! :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew tap killercup/homebrew-openresty | |
$ brew install ngx_openresty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateApp(){ | |
readRowsHelper(); | |
}; | |
function getKinveyParameters(){ | |
return { | |
kinvey_app_id: " YOUR APP ID ", | |
kinvey_master_secret: " YOUR MASTER SECRET " | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |