Skip to content

Instantly share code, notes, and snippets.

View bobmcwhirter's full-sized avatar

Bob McWhirter bobmcwhirter

View GitHub Profile
15:49:13,932 INFO [STDOUT] Sun RSA private CRT key, 1024 bits
modulus: 122917821207841378941160046306132973252634390424953609685466286987744945404957098495665361622752455578657585394864218765572977431970601298876017380278727914410158000080933779081185575073733344068023581157795192725752348675874437285202707626333124430158698098132523356952355061365476907642823045309548170521709
public exponent: 65537
private exponent: 48561701431457481781963103574444892861394473913711321268536751799543649029176636010952096420896693163290998993603984806723156868159708391145426888783081657328231677697562278819769465318488344086542910041433603049997476575822477772482463036504120823956644058690641369396872627327479932200809479368063017999729
prime p: 13291321832385894829983312402902322504182474419022524309743557213277597510014758314752030266513443902484964811201380183518372409082785058687906291340043847
prime q: 924797569105108950266610925093791127992881493166310055843841000399283595222
case KEY_RSA:
e = buffer_get_char(&b);
debug("e %lx", e);
if (e < 30) {
e <<= 8;
e += buffer_get_char(&b);
debug("e %lx", e);
e <<= 8;
e += buffer_get_char(&b);
debug("e %lx", e);
LOAD PATH: ["/Users/bob/oddthesis/jboss/jdk1.6/jboss-5.0.0.GA/server/default/deployers/jboss-rails.deployer/jruby-complete-1.1.6.jar/META-INF/jruby.home//lib/ruby/site_ruby/1.8", "/Users/bob/oddthesis/jboss/jdk1.6/jboss-5.0.0.GA/server/default/deployers/jboss-rails.deployer/jruby-complete-1.1.6.jar/META-INF/jruby.home//lib/ruby/site_ruby", "/Users/bob/oddthesis/jboss/jdk1.6/jboss-5.0.0.GA/server/default/deployers/jboss-rails.deployer/jruby-complete-1.1.6.jar/META-INF/jruby.home//lib/ruby/1.8", "/Users/bob/oddthesis/jboss/jdk1.6/jboss-5.0.0.GA/server/default/deployers/jboss-rails.deployer/jruby-complete-1.1.6.jar/META-INF/jruby.home//lib/ruby/1.8/java", "lib/ruby/1.8", "."]
16:49:08,732 INFO [STDOUT] LOAD PATH:
16:49:08,736 INFO [STDOUT] [
16:49:08,739 INFO [STDOUT] "/Users/bob/oddthesis/jboss/jdk1.6/jboss-5.0.0.GA/server/default/deploy/ovirt-ec2.war/WEB-INF/lib/jruby-complete-1.1.6.jar/META-INF/jruby.home//lib/ruby/site_ruby/1.8"
16:49:08,739 INFO [STDOUT] ,
16:49:08,740 INFO [STDOUT]
16:49:08,741 INFO [STDOUT] "/Users/bob/oddthesis/jboss/jdk1.6/jboss-5.0.0.GA/server/default/deploy/ovirt-ec2.war/WEB-INF/lib/jruby-complete-1.1.6.jar/META-INF/jruby.home//lib/ruby/site_ruby"
16:49:08,741 INFO [STDOUT] ,
16:49:08,741 INFO [STDOUT]
16:49:08,742 INFO [STDOUT] "/Users/bob/oddthesis/jboss/jdk1.6/jboss-5.0.0.GA/server/default/deploy/ovirt-ec2.war/WEB-INF/lib/jruby-complete-1.1.6.jar/META-INF/jruby.home//lib/ruby/1.8"
16:49:08,742 INFO [STDOUT] ,
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
generator.initialize(1024);
KeyPair keys = generator.generateKeyPair();
System.err.println(keys.getPrivate().getFormat());
System.err.println(keys.getPrivate().getEncoded());
byte[] encoded = keys.getPrivate().getEncoded();
String base64 = Base64.encodeBytes( encoded );
System.err.println( "base64: " + base64 );
leonard:bin bob$ ssh-keygen -f key -y -vvvv
debug3: Not a RSA1 key file key.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase:
debug3: Not a RSA1 key file key.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
load failed
leonard:bin bob$
00000000 00 00 00 07 73 73 68 2d 72 73 61 00 00 00 03 01 |....ssh-rsa.....|
00000010 00 01 00 00 01 01 00 ac 24 9d 84 ad 19 80 9a d3 |........$.......|
class Ec2WebService < BaseWebService
target_namespace 'http://ec2.amazonaws.com/doc/2008-12-01/'
port_name 'AmazonEC2'
security do
inbound do
verify_signature
verify_timestamp
end
JBoss-Rails: Yet Another Way To Deploy Rails Apps
We'll briefly describe the technologies woven together to deploy Rails apps on Java appservers, then dive right into usage.
Demonstrations of both local development using JBoss-Rails and remote deployment using traditional Capistrano processes works seamlessly and as expected.
Then we'll answer the question "Why should I deploy on JBoss-Rails, and not Passenger/Mongrel/etc?" through demonstration of advanced enterprise-grade features such as
* Job scheduling (cron)
* SOAP handling
[remote "origin"]
url = git://github.com/bobmcwhirter/jboss-rails-plugin.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "commit"]
url = git@github.com:bobmcwhirter/jboss-rails-plugin.git
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "bketelsen"]