Skip to content

Instantly share code, notes, and snippets.

View bobmcwhirter's full-sized avatar

Bob McWhirter bobmcwhirter

View GitHub Profile
<instance href="http://localhost:3000/instances/i-b5bfb1dc">
<id>i-b5bfb1dc</id>
<private-address>domU-12-31-39-06-28-51.compute-1.internal</private-address>
<image href="http://localhost:3000/images/ami-5930d130"/>
<owner_id>601083040030</owner_id>
<flavor>m1-large</flavor>
<state>RUNNING</state>
<public-address>ec2-75-101-229-217.compute-1.amazonaws.com</public-address>
<link rel="reboot">http://localhost:3000/instances/i-b5bfb1dc/reboot</link>
</instance>
<flavors>
<flavor href="http://localhost:3000/flavors/m1-small">
<id>m1-small</id>
<storage>160</storage>
<memory>1.7</memory>
<architecture>i386</architecture>
</flavor>
<flavor href="http://localhost:3000/flavors/m1-large">
DeltaCloud.new( "name", "password", API_URL ) do |client|
puts client.flavors.inspect
end
==>
[{"memory"=>"1.7", "id"=>"m1-small", "storage"=>"160", "architecture"=>"i386"},
{"memory"=>"7.5", "id"=>"m1-large", "storage"=>"850", "architecture"=>"x86_64"},
{"memory"=>"15", "id"=>"m1-xlarge", "storage"=>"1690", "architecture"=>"x86_64"},
{"memory"=>"1.7", "id"=>"c1-medium", "storage"=>"350", "architecture"=>"x86_64"},
# From Paul Eggert (2005-08-26):
# According to today's Huntsville Times
# <http://www.al.com/news/huntsvilletimes/index.ssf?/base/news/1125047783228320.xml&coll=1>
# a few towns on Alabama's "eastern border with Georgia, such as Phenix City
# in Russell County, Lanett in Chambers County and some towns in Lee County,
# set their watches and clocks on Eastern time." It quotes H.H. "Bubba"
# Roberts, city administrator in Phenix City. as saying "We are in the Central
# time zone, but we do go by the Eastern time zone because so many people work
# in Columbus."
11:07:07,871 ERROR [STDERR] Mutex relocking by same thread (ThreadError)
11:07:07,872 ERROR [STDERR] from /Users/bob/sportsdraught/sportsdraught/vendor/rails/actionpack/lib/action_controller/reloader.rb:32:in `run'
11:07:07,872 ERROR [STDERR] from /Users/bob/sportsdraught/sportsdraught/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:108:in `call'
11:07:07,872 ERROR [STDERR] from <script>:1
11:07:07,872 ERROR [STDERR] ...internal jruby stack elided...
11:07:07,872 ERROR [STDERR] from Mutex.lock(/Users/bob/sportsdraught/sportsdraught/vendor/rails/actionpack/lib/action_controller/reloader.rb:32)
11:07:07,872 ERROR [STDERR] from #<Class:01x262f030d>.run(/Users/bob/sportsdraught/sportsdraught/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:108)
11:07:07,872 ERROR [STDERR] from ActionController::Dispatcher.call(<script>:1)
11:07:07,872 ERROR [STDERR] from (unknown).(unknown)(:1)
development:
adapter: postgresql
database: sportsdraught_development
username: sportsdraught
password: sportsdraught
host: localhost
encoding: UTF8
test:
leonard:torquebox-core bob$ ls -1 $JRUBY_HOME/lib/ruby/gems/1.8/gems/
actionmailer-2.3.4
actionpack-2.3.4
activerecord-2.3.4
activerecord-jdbc-adapter-0.9.1
activerecord-jdbcderby-adapter-0.9.1
activerecord-jdbch2-adapter-0.9.1
activerecord-jdbchsqldb-adapter-0.9.1
activerecord-jdbcmysql-adapter-0.9.1
activerecord-jdbcpostgresql-adapter-0.9.1
leonard:torquebox-core bob$ ruby foo.rb
true
leonard:torquebox-core bob$ cat foo.rb
class Foo
def testit
puts @foo.nil?
end
end
17:23:22,867 INFO [VFSLoadService] load(vfszip:/Users/bob/torquebox-1.0.0.Beta17-SNAPSHOT-bin/jboss/server/default/deploy/ballast-bundled.jar//app/helpers/root_helper.rb, false)
17:23:22,879 INFO [VFSLoadService] findLibrary() ==> vfszip:/Users/bob/torquebox-1.0.0.Beta17-SNAPSHOT-bin/jboss/server/default/deploy/ballast-bundled.jar/app/helpers/root_helper.rb
17:23:22,893 INFO [VFSLoadService] require(action_controller/response)
17:23:22,900 INFO [VFSLoadService] require(digest/md5)
17:23:22,928 INFO [VFSLoadService] require(digest.so)
17:23:23,044 INFO [VFSLoadService] require(rack/response)
17:23:23,048 INFO [VFSLoadService] require(rack/request)
17:23:23,049 INFO [VFSLoadService] require(rack/utils)
17:23:23,056 INFO [VFSLoadService] require(action_controller/url_rewriter)
17:23:23,078 INFO [VFSLoadService] require(action_controller/url_rewriter)
package org.ovirt.ec2.asn1;
import java.io.FileInputStream;
import java.math.BigInteger;
import java.util.List;
import junit.framework.TestCase;
import org.jboss.util.Base64;