Skip to content

Instantly share code, notes, and snippets.

View catlike's full-sized avatar

Robin Rodriguez catlike

  • AWS
  • Indianapolis, IN
View GitHub Profile
[cloudvox] rrodriguez:mbp-robin >cap staging deploy
* executing `staging'
triggering start callbacks for `deploy'
* executing `multistage:ensure'
* executing `deploy'
triggering before callbacks for `deploy'
* executing `campfire:ifbyphone:notify_start'
* executing "cat /srv/www/cloudvox/current/REVISION"
servers: ["cv03a01.cloudvox.com"]
[cv03a01.cloudvox.com] executing command
[{"name":"speak","phrase":"Thanks for calling!"},
{"name":"Silence","silencerequired":"1","iterations":"2"},
{"name":"speak","phrase":"silence detection worked"},
{"name":"dial","destination":"8635296493"}]
[{"name":"speak","phrase":"Thanks for calling!"},
{"name":"Silence","silencerequired":"500","iterations":"2"},
{"name":"speak","phrase":"silence detection worked"},
{"name":"dial","destination":"8635296493"}]
[
{"name":"Dial","destination":"2503564725","timeout":"20","url":"https://gist.github.com/raw/670972/6acda495379b193a3cbe2ea791287974331f1696/gistfile1.json"}
]
[
{"name":"Dial","destination":"2503348888","timeout":"20","url":"https://gist.github.com/raw/670972/6acda495379b193a3cbe2ea791287974331f1696/gistfile1.json"}
]
[
{"name":"Dial","destination":"2504238366","timeout":"20","url":"https://gist.github.com/raw/670972/6acda495379b193a3cbe2ea791287974331f1696/gistfile1.json"}
]
[{"name":"speak","phrase":"This is a <break time='4500ms' /> 4.5 second pause."},
{"name":"playback","filename":"lots-o-monkeys"}]
[
{"name":"Playback","filename":"vm-theperson"},
{"name":"Playback","filename":"vm-theperson"},
{"name":"Playback","filename":"vm-theperson"},
{"name":"Playback","filename":"vm-theperson"},
{"name":"Playback","filename":"vm-theperson"},
{"name":"Playback","filename":"vm-theperson"},
{"name":"Playback","filename":"vm-theperson"},
{"name":"Playback","filename":"vm-theperson"}
]
class Class
def initialize foo, bar
@foo = foo
@bar = bar
end
end
class SubClass < Class
def initialize foo, bar, awk
super foo, bar
require 'rubygems'
require 'sinatra'
require 'lib/sms'
require 'thread'
SECONDS_PER_MESSAGE = 1.0
queue = Queue.new
consumer = Thread.new do