Skip to content

Instantly share code, notes, and snippets.

View kitplummer's full-sized avatar
🏠
Working from home

Kit Plummer kitplummer

🏠
Working from home
View GitHub Profile
@kitplummer
kitplummer / gist:1270732
Created October 7, 2011 16:33
Warbler producing a JAR that does this...then runs.
@doze ➜ MaestroAgent rvm:(-jruby-1.6.3@agent) git:(jruby) ✗ java -jar maestro_agent.jar
org.jruby.exceptions.RaiseException: (LoadError) library `yecht' could not be loaded: java.lang.NoClassDefFoundError: org/jruby/internal/runtime/methods/JavaMethod$JavaMethodOne
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at Kernel.require(file:/var/folders/q1/w3kp1s294ds4rxn6_vqwl8jh0000gn/T/jruby7545445060459808272extract/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29)
at #<Class:0x16ce9b75e>.(root)(file:/var/folders/q1/w3kp1s294ds4rxn6_vqwl8jh0000gn/T/jruby7545445060459808272extract/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8/yaml/yecht.rb:5)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038)
at Kernel.require(file:/var/folders/q1/w3kp1s294ds4rxn6_vqwl8jh0000gn/T/jruby7545445060459808272extract/jruby-stdlib-1.6.4.jar!/META-INF/jruby.home/lib/ruby/1.8/yaml/yecht.rb:29)
at #<Class:0x16ce9b75e>.(root)(file:/var/folders/q
@kitplummer
kitplummer / results.txt
Created October 31, 2011 21:17
fog-1.0.0/nokogiri-1.5.0 problem in JRuby
C: #<Fog::Compute::AWS::Real:0x492833ff>
Excon::Errors::SocketError: The processing instruction target matching "[xX][mM][lL]" is not allowed.
request at /Users/kplummer/.rvm/gems/jruby-1.6.5@fogio/gems/excon-0.7.6/lib/excon/connection.rb:189
request at /Users/kplummer/.rvm/gems/jruby-1.6.5@fogio/gems/fog-1.0.0/lib/fog/core/connection.rb:20
request at /Users/kplummer/.rvm/gems/jruby-1.6.5@fogio/gems/fog-1.0.0/lib/fog/aws/compute.rb:286
run_instances at /Users/kplummer/.rvm/gems/jruby-1.6.5@fogio/gems/fog-1.0.0/lib/fog/aws/requests/compute/run_instances.rb:106
save at /Users/kplummer/.rvm/gems/jruby-1.6.5@fogio/gems/fog-1.0.0/lib/fog/aws/models/compute/server.rb:169
create at /Users/kplummer/.rvm/gems/jruby-1.6.5@fogio/gems/fog-1.0.0/lib/fog/core/collection.rb:50
(root) at test.rb:10
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maestro :: Data Management 4.0-beta-3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maestrodev.com/archiva/repository/all/javax/inject/inject/1.0/inject-1.0.pom
Downloading: https://repo.maestrodev.com/archiva/repository/all/javax/inject/inject/1.0/inject-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maestro ........................................... SUCCESS [0.983s]
[root@ip-10-72-94-166 ~]# java -jar lucee.0.0.9-SNAPSHOT.war
[Winstone 2011/11/17 17:36:27] - Beginning extraction from war file
[Winstone 2011/11/17 17:36:33] - WARNING: The Servlet 2.4/2.5 spec XSD was unavailable inside the winstone classpath. Will be retrieved from the web if required (slow)
[Winstone 2011/11/17 17:36:34] - No webapp classes folder found - /tmp/winstone261394273094770152webroot/lucee.0.0.9-SNAPSHOT.war/WEB-INF/classes
[webapp 2011/11/17 17:36:34] - jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (OpenJDK Client VM 1.6.0_20) [linux-i386-java]
[webapp 2011/11/17 17:36:51] - Warning: no min runtimes specified.
[webapp 2011/11/17 17:36:51] - Warning: no max runtimes specified.
[webapp 2011/11/17 17:36:52] - An exception happened during JRuby-Rack startup
stack level too deep
--- System
source :rubygems
gem 'bundler', '1.0.21'
gem 'safely'
gem 'ruote', :git => 'git://github.com/jmettraux/ruote.git', :ref => "feac02174e276e6e95ba"
gem 'ruote-dm', :git => 'git://github.com/jmettraux/ruote-dm.git' #'~> 2.2.0'
gem 'stompserver_ng', :git => 'git://github.com/gmallard/stompserver_ng.git'
@pick ➜ hello-scala rvm:(-jruby-1.6.5) git:(master) ✗ mvn -e clean scala:compile -DdisplayCmd=true
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hello-scala 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ hello-scala ---
[INFO] Deleting /Users/kplummer/MX/hello-scala/target
@kitplummer
kitplummer / gist:1893402
Created February 23, 2012 15:54
Fix eth0 on a mobile CentOS VM.
1. edit /etc/udev/rules.d/70-persistent-net.rules
If there are two entries, delete the first - you should only have the 'vmxnet' interface there. Ensure that the rule specifies 'eth0' and not 'eth1' for the 'NAME=' parameter. Copy/note the MAC address specified there.
2. edit /etc/sysconfig/network-scripts/ifcfg-eth0
Replace the MAC address with the one noted from above.
3. reboot
@kitplummer
kitplummer / gist:2911213
Created June 11, 2012 16:50
Running 'rhc setup' to change OpenShift account:
Configuration file /Users/kplummer/.openshift/express.conf already exists, backing up to /Users/kplummer/.openshift/express.conf.bak
/Users/kplummer/.rvm/gems/ruby-1.9.2-p320/gems/rhc-0.93.18/lib/rhc/wizard.rb:564:in `create_config_stage': undefined method `cp' for File:Class (NoMethodError)
from /Users/kplummer/.rvm/gems/ruby-1.9.2-p320/gems/rhc-0.93.18/lib/rhc/wizard.rb:43:in `block in run'
from /Users/kplummer/.rvm/gems/ruby-1.9.2-p320/gems/rhc-0.93.18/lib/rhc/wizard.rb:41:in `each'
from /Users/kplummer/.rvm/gems/ruby-1.9.2-p320/gems/rhc-0.93.18/lib/rhc/wizard.rb:41:in `run'
from /Users/kplummer/.rvm/gems/ruby-1.9.2-p320/gems/rhc-0.93.18/bin/rhc:67:in `<top (required)>'
from /Users/kplummer/.rvm/gems/ruby-1.9.2-p320/bin/rhc:19:in `load'
from /Users/kplummer/.rvm/gems/ruby-1.9.2-p320/bin/rhc:19:in `<main>'
from /Users/kplummer/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `eval'
(anvil)➜ u-plummerk-allura git:(master) git push openshift
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 470 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Stopping application...
remote: Done
remote: ~/git/kittest.git ~/git/kittest.git
remote: ~/kittest/tmp ~/git/kittest.git ~/git/kittest.git
remote: 01:14:17,249 INFO [allura.command] Initialize command with config 'development.ini'
remote: 01:14:19,639 INFO [allura.websetup.schema] setup_schema called
remote: 01:14:19,648 ERROR [ming.datastore] Error connecting to master: mongodb://127.0.0.1:27017
remote: Traceback (most recent call last):
remote: File "/var/lib/stickshift/71ec9f2818ba41a79820ec0fbfcd6ffe/kittest/runtime/lib/python2.7/site-packages/ming/datastore.py", line 67, in _connect
remote: master = self.ConnectionClass(self.master_args, **self._connect_args)
remote: File "/var/lib/stickshift/71ec9f2818ba41a79820ec0fbfcd6ffe/kittest/runtime/lib/python2.7/site-packages/pymongo/connection.py", line 381, in __init__
remote: self.__find_node()
remote: File "/var/lib/stickshift/71ec9f2818ba41a79820ec0fbfcd6ffe/kittest/runtime/lib/python2.7/site-packages/pymongo/connection.py", line 659, in __find_node
remote: raise AutoReconnect(', '.join(errors))