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"); |
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 https = require('https'); | |
var util = require('util'); | |
//via http://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objects | |
function flatten(data) { | |
var result = {}; | |
function recurse (cur, prop) { | |
if (Object(cur) !== cur) { | |
result[prop] = cur; | |
} else if (Array.isArray(cur)) { |
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
(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
--============================== | |
-- Send Keynote Presenter Notes to Evernote | |
-- Version 1.0.1 | |
-- Written By: Ben Waldie <ben@automatedworkflows.com> | |
-- http://www.automatedworkflows.com | |
-- Version 1.0.0 - Initial release | |
-- Version 1.0.1 - Updated for Keynote 6.2 compatibility | |
--============================== |
OlderNewer