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
* * * * * touch /tmp/.cron_is_working |
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
/** | |
* Merges environment variables + config file + command line args | |
* | |
* To use, from app.js: | |
* var conf = require('./config').init(); | |
*/ | |
var argv = require('optimist').argv; | |
function init() { | |
//1. check process.env |
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 () { | |
if (!(document.getElementsByTagName("canvas").length)) { | |
return; | |
} | |
(function () { | |
var myKapi, | |
myText; | |
myKapi = kapi(document.getElementById('demo1'), { |
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
Ld bin/mapamokDebug.app/Contents/MacOS/mapamokDebug normal i386 | |
cd /Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok | |
/Developer/usr/bin/clang++ -arch i386 -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/bin -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/android/armeabi -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/android/armeabi-v7a -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/iphone -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../../ofxOpenCv/libs/opencv/lib/linux -L/Users/applemacbookpro/Documents/Projects/LIBRARIES/of_preRelease_v007_osx/apps/ProCamToolkit/mapamok/../. |
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
var spawn = require('child_process').spawn; | |
var bin = "casperjs" | |
//googlelinks.js is the example given at http://casperjs.org/#quickstart | |
var args = ['scripts/googlelinks.js']; | |
var cspr = spawn(bin, args); | |
//cspr.stdout.setEncoding('utf8'); | |
cspr.stdout.on('data', function (data) { | |
var buff = new Buffer(data); |
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
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys' |
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
# this script expects to be run from your home dir | |
# TOTALLY STILL UNDER DEVELOPMENT! | |
# automated version of https://gist.github.com/3116835 | |
# this will get your ID... | |
GUID=$(pwd | sed -e 's/\/var\/lib\/stickshift\/\([^\/]*\)\/.*/\1/') | |
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
var errors = require('protocol').errors; | |
var MemJS = require('memjs'); | |
exports.testGetSuccessful = function(beforeExit, assert) { | |
var n = 0; | |
var callbn = 0; | |
var dummyServer = new MemJS.Server(); | |
dummyServer.write = function(requestBuf) { | |
request = MemJS.Utils.parseMessage(requestBuf); | |
assert.equal('hello', request.key); |
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
#!/usr/bin/env node | |
// | |
// usage: | |
// FACEBOOK_APP_ID=<APPID> FACEBOOK_APP_SECRET=<SECRET> ./test/load-test/scripts/facebook/create-test-users.js > output.csv | |
// | |
var userCount = process.env.USER_COUNT || 10; | |
var restify = require("restify") | |
async = require("async"); |
OlderNewer