Skip to content

Instantly share code, notes, and snippets.

View adelcambre's full-sized avatar

Andy Delcambre adelcambre

View GitHub Profile
/load perl
/script load fnotify
Host screen_host
Hostname screen_host.domain.com
User adelcambre
LocalCommand ~/bin/growl_irc.sh
PermitLocalCommand yes
#!/bin/bash
(ssh adelcambre@screen_host -o PermitLocalCommand=no \
": > .irssi/fnotify ; tail -f .irssi/fnotify " | \
while read heading message; do \
growlnotify -t "${heading}" -m "${message}"; \
done)&
# Wtf? If you aren't multithreaded, Thread.current == Thread.mainm
# why on earth would you ever want to turn this off? oh, and it defaults off
def request_info(request, parser) #:nodoc:
thread = @params[:multi_thread] ? Thread.current : Thread.main
thread[:ec2_connection] ||= Rightscale::HttpConnection.new(:exception => AwsError, :logger => @logger)
request_info_impl(thread[:ec2_connection], @@bench, request, parser)
end
diff --git a/spec/mysql_server_spec.rb b/spec/mysql_server_spec.rb
index dcb8a4c..7637c23 100644
--- a/spec/mysql_server_spec.rb
+++ b/spec/mysql_server_spec.rb
@@ -1,4 +1,5 @@
MOUNT_POINT = File.expand_path(File.dirname(__FILE__) + '/../mount')
+require File.dirname(__FILE__) + '/spec_helper'
require 'fileutils'
describe "A mysql server" do
mysql> XA START "asdf";
Query OK, 0 rows affected (0.00 sec)
mysql> create table asdf2 (id integer);
ERROR 1399 (XAE07): XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
~/ey_projs/awsm(migration) $ MERB_ENV=development bin/rake db:migrate
(in /Users/pbiegaj/ey_projs/awsm)
Loading init file from /Users/pbiegaj/ey_projs/awsm/config/init.rb
Loading /Users/pbiegaj/ey_projs/awsm/config/environments/development.rb
Loading init file from /Users/pbiegaj/ey_projs/awsm/config/init.rb
/Users/pbiegaj/ey_projs/awsm/config/init.rb:30: warning: already initialized constant SSH_KEY_FILE
Loading /Users/pbiegaj/ey_projs/awsm/config/environments/development.rb
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 1412
loop
begin
code_that_might_raise
rescue
count ||= 0; count +=1
break if count > 10
end
end
commit ed47134b48efffcf717fb5afbcb918e51a305e54
Author: Matt Aimonetti <[email protected]>
Date: Thu Oct 16 19:09:47 2008 -0700
Fix: merb-helpers - Radio groups should only have one element with the checked property - Ticket #271
aczid fixed the problem by only setting the radio button as true if it has a value
diff --git a/merb-helpers/lib/merb-helpers/form/builder.rb b/merb-helpers/lib/merb-helpers/form/builder.rb
index 53b7ca9..96a463e 100644
options.scan(/(\w+)=(\w+)/).inject({}) { |h,(k,v)| h[k] = v; h }