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/sh | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
source ~/.bash_profile | |
rvm install 1.9.2 | |
rvm --default 1.9.2 | |
gem update | |
gem install rails |
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 magic = function () { | |
twilio.getSmsMessages("623-850-4926", "2012-04-02", function (success) { | |
success.sms_messages.forEach(function (message) { | |
twilio.makeCall("623-850-4926", message.from, "http://demo.rabasa.com/tombstone.php"); | |
}); | |
}); | |
}; |
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
// set-up a connection between the client and the server | |
var socket = io.connect(); | |
// let's assume that the client page, once rendered, knows what room it wants to join | |
var room = "abc123"; | |
socket.on('connect', function() { | |
// Connected, let's sign-up for to receive messages for this room | |
socket.emit('room', room); | |
}); |
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 (globals) { | |
var | |
// The username and password for BASIC auth | |
username, | |
password, | |
// CHANGE THIS | |
apiRoot = "https://api.foo.com/version", |
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
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying | |
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying |
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
Application = Thorax.Application.create() | |
# convenience for debugging | |
window.Application = Application | |
# main view controller | |
Application.ViewController.create | |
parent: Application | |
routes: | |
'': 'index' |
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
{ | |
"name": "Demo Voting", | |
"shortname": "demo", | |
"voteoptions": [{ | |
"id": 1, | |
"name": "foo", | |
"votes": 0, | |
"numbers": [] | |
}, | |
{ |
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
{ | |
"_id": "_design/event", | |
"views": { | |
"byShortname": { | |
"map": "function (doc) { if (doc.shortname) { emit(doc.shortname, doc) } } " | |
}, | |
"byPhonenumber": { | |
"map": "function (doc) { if (doc.phonenumber) { emit(doc.phonenumber, doc) } } " | |
}, | |
"all": { |
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
// Twilio API: http://twilio.com/api | |
// Twilio Node.js module: https://github.com/stevegraham/twilio-js | |
var Twilio = require('twilio-js') | |
, twilioNumber = "your SMS-enabled Twilio #"; | |
require('./creds')(Twilio); | |
// creds.js should look like: | |
// |
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 request = require('request'), | |
querystring = require('querystring'), | |
Buffer = require('buffer').Buffer; | |
var numbers = ['+12068666338']; | |
var vote = process.argv[2]; | |
var attack = function(i) { | |
var dataHash = {Body: vote, From: vote + "-" + i, To: numbers[0]}, |
OlderNewer