Skip to content

Instantly share code, notes, and snippets.

irb(main):007:0> r.rpush 'list', 'one'
=> "OK"
irb(main):008:0> r.rpush 'list', 'two'
=> "OK"
irb(main):009:0> r.rpush 'list', 'three'
=> "OK"
irb(main):010:0> r.lrange 'list', 0 , -1
=> ["one", "two", "three"]
irb(main):012:0> r.lpoppush 'list', 'inuse'
=> "three"
rlpowell@chain> cat ~/bin/eygrep
#!/bin/sh
if [ "$2" ]
then
grep $1 /home/rlpowell/.samurai/git/$2/cluster.xml
else
grep $1 /home/rlpowell/.samurai/git/*/cluster.xml
fi
class GemRequirer
def self.load(str)
requirer = new
requirer.instance_eval(str)
requirer
end
def gem(name, *args)
options = args.pop if args.last.is_a?(Hash)
options ||= {}
require 'rubygems'
require 'yaml'
require 'rake'
require 'highline/import'
require 'grit'
require 'pp'
class EyDeploy
EXCLUDES = %w[
2009-05-14 13:31:35 (out 88)connected from 173.45.241.209:55931
2009-05-14 13:31:35 (out 88)>>> 220 mx1.emailsrvr.com ESMTP - (gate9.gate.dfw.ml
srvr.com) VA Code Section 18.2-152.3:1 forbids sending spam through this system
2009-05-14 13:31:35 (out 88)<<< EHLO zeus.paperlesspostmta.com
2009-05-14 13:31:35 (out 88)>>> 250-gate9.gate.dfw.mlsrvr.com
2009-05-14 13:31:35 (out 88)>>> 250-PIPELINING
2009-05-14 13:31:35 (out 88)>>> 250-SIZE 75000000
2009-05-14 13:31:35 (out 88)>>> 250-ETRN
2009-05-14 13:31:35 (out 88)>>> 250-STARTTLS
2009-05-14 13:31:35 (out 88)>>> 250-ENHANCEDSTATUSCODES
rlpowell@chain> /var/lib/gems/1.8/bin/samurai lbconfig -i 65.74.177.199 -C nr00 -p 443
Permission denied (publickey,keyboard-interactive).
Checking the nr00 load balancer configuration for 65.74.177.199:443
65.74.177.199:443 is not forwarded on the nr00 load balancer
deploy "/foo/bar" dop
#...
only_if node[:run_deploy]
end
diff -r 2ce3d18b4383 src/rabbit_access_control.erl
--- a/src/rabbit_access_control.erl Fri Apr 24 17:08:19 2009 +0100
+++ b/src/rabbit_access_control.erl Mon Apr 27 18:28:52 2009 +0100
@@ -241,7 +241,8 @@
{<<"amq.topic">>, topic},
{<<"amq.match">>, headers}, %% per 0-9-1 pdf
{<<"amq.headers">>, headers}, %% per 0-9-1 xml
- {<<"amq.fanout">>, fanout}]],
+ {<<"amq.fanout">>, fanout},
+ {<<"amq.rabbitmq.presence">>, topic}]],
apache
sys-process/at
app-misc/sphinx
net-misc/rabbitmq-server
dev-db/couchdb
collectd
curl
dhcpcd
eix
erlang
namespace :deploy do
task :start, :roles => :app do
run "touch #{current_release}/tmp/restart.txt"
end
task :stop, :roles => :app do
# Do nothing.
end
desc "Restart Application"