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
class InfiniteLoopWorker < SimpleWorker::Base | |
def run | |
worker = InfiniteLoopWorker.new | |
worker.queue | |
end | |
end |
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
instance_id = `wget -q -O - http://169.254.169.254/latest/meta-data/instance-id` | |
puts 'instance_id=' + instance_id |
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
require 'simple_worker' | |
class TwilioWorker < SimpleWorker::Base | |
# This is the magic function. It will also require 'twiliolib' | |
merge_gem 'twiliolib' | |
# You can also specify the version | |
# merge_gem 'twiliolib', '2.0.7' | |
attr_accessor :twilio_key, :twilio_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
buf=<�_������admin.$cmdwhatsmyuri | |
Unknown element kind (0xEC) | |
map[] | |
buf=N÷���_�*you127.0.0.1:43862ok�? | |
Unknown element kind (0xC3) | |
map[] | |
buf=P�_������admin.$cmd)replSetGetStatusforShell | |
Unknown element kind (0xED) | |
map[] | |
buf=\ķ���_�8errmsgnot running with --replSetok |
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
include $(GOROOT)/src/Make.inc | |
TARG=queue_mem | |
GOFILES:=queue_mem.go | |
include $(GOROOT)/src/Make.pkg |
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
merge_gem 'sass' | |
# now override it | |
module Sass | |
module Version | |
def version | |
@@version = { | |
:major => 3, | |
:minor => 2, |
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
database: | |
adapter: mysql2 | |
host: x.y.com | |
database: whatever | |
username: something | |
password: something else | |
simpleworker: | |
access_key: mykey | |
secret_key: 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
//Then in the main "app.js" (or wherever) call it like this: | |
var HTTPironmq = require('iron_mq'); | |
HTTPironmq.call({ | |
paramsJSON : { | |
messages : [ | |
{ | |
"body": "This is my message 1.", | |
"timeout": 30, |
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
# First run: sudo apt-get install git | |
# Then clone this gist. | |
# Then run build.sh | |
# basics | |
sudo apt-get install g++ libcurl3-dev curl build-essential libxml2-dev libxslt-dev git mercurial bzr mongodb-clients | |
# python-software-properties, seems to already be there or something? | |
# Go - https://wiki.ubuntu.com/Go | |
mkdir $HOME/go |
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
if defined? $abt_config | |
@config = $abt_config | |
return @config | |
end |
OlderNewer