Skip to content

Instantly share code, notes, and snippets.

View rabidpraxis's full-sized avatar
🍎
Eating an apple.

Kevin Webster rabidpraxis

🍎
Eating an apple.
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am rabidpraxis on github.
  • I am kevinwebster (https://keybase.io/kevinwebster) on keybase.
  • I have a public key ASC09xKR6tZL5S89-hPsWn1jFWKlAXg34fV9c6_ot5AibQo

To claim this, I am signing this object:

View gist:741d22330aac34c86433
WITH teams AS (
SELECT
away_team as team,
away_score as score
FROM game
WHERE game.season_year = 2014
AND game.season_type = 'Regular'
UNION
@rabidpraxis
rabidpraxis / s3_mass_bucket_delete.rb
Created April 2, 2013 16:53
Delete s3 bucket with minimal api calls
View s3_mass_bucket_delete.rb
require 'fog'
bucket = 'bucket-name'
credentials = {
:provider => 'AWS',
:aws_access_key_id => 'access_key_id',
:aws_secret_access_key => 'secret_key',
}
fog = Fog::Storage.new(credentials)
@rabidpraxis
rabidpraxis / gist:5205559
Created March 20, 2013 15:22
service loader
View gist:5205559
Booting AS7 from configuration /usr/local/var/rbenv/versions/jruby-1.7.3/lib/ruby/gems/shared/gems/torquebox-server-2.3.0-java/jboss/standalone/configuration/standalone.xml
/bin/sh bin/standalone.sh -Djruby.home=/usr/local/var/rbenv/versions/jruby-1.7.3 --server-config=standalone.xml
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/local/var/rbenv/versions/jruby-1.7.3/lib/ruby/gems/shared/gems/torquebox-server-2.3.0-java/jboss
JAVA: java
@rabidpraxis
rabidpraxis / gist:4954616
Created February 14, 2013 17:46
Netty Error
View gist:4954616
23:15:23,017 ERROR [org.hornetq.core.remoting.impl.netty.NettyConnector] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=dbe6db53-7325-11e2-b293-8faffb72a4fc-469550044)) Failed to create netty connection: java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method) [rt.jar:1.7.0_11]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) [rt.jar:1.7.0_11]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) [rt.jar:1.7.0_11]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) [rt.jar:1.7.0_11]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) [rt.jar:1.7.0_11]
at java.net.Socket.connect(Socket.java:579) [rt.jar:1.7.0_11]
at org.jboss.netty.channel.socket.oio.OioClientSocketPipelineSink.connect(OioClientSocketPipelineSink.java:114) [netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.socket.oio.OioClientSocketPipelineSink.eventSunk(
@rabidpraxis
rabidpraxis / server-1
Last active December 12, 2015 03:49
Clustered topic service issue
View server-1
21:58:48,949 DEBUG [org.hornetq.core.client.impl.ClientSessionImpl] (MSC service thread 1-4) Calling close on session ClientSessionImpl [name=ea066553-6f15-11e2-afc1-e3b741686c19, username=null, closed=false, factory = ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=
0], discoveryGroupConfiguration=null], connectorConfig=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0, backupConfig=null], metaData=(jms-session=,)]@4b6a82ce
21:58:48,950 DEBUG [org.hornetq.core.server.cluster.impl.ClusterConnectionImpl] (Thread-3 (HornetQ-client-global-threads-1049751023)) ClusterCommunication::Flow record on StaticClusterConnector [tcConfigs=[org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&host=192-168-100-30]] Receiving message ClientMessage[messageID=497111, durable=true, add
ress=hornetq.notifications,properties=TypedProperties[{_HQ_User=5da5b37e-e815-4206-8f6d-a5e86acfabe1, _HQ_NotifTim
@rabidpraxis
rabidpraxis / gist:4708986
Last active December 12, 2015 03:39
HornetQ Periodic Recovery
View gist:4708986
19:32:25,336 DEBUG [org.hornetq.jms.server.recovery.HornetQRecoveryRegistry] (Periodic Recovery) =======================================================================================
19:32:25,336 DEBUG [org.hornetq.jms.server.recovery.HornetQRecoveryRegistry] (Periodic Recovery) Returning the following list on getXAREsources:
19:32:25,336 DEBUG [org.hornetq.jms.server.recovery.HornetQRecoveryRegistry] (Periodic Recovery) server-id=669d5bf6-6e94-11e2-a5aa-7f92ed790298, value=HornetQXAResourceWrapper [serverLocator=ServerLocatorImpl [initialConnectors=[org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0], discoveryGroupConfiguration=null], csf=ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0], discoveryGroupConfiguration=null], connectorConfig=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0, backupConfig=null], delegate=DelegatingSession [session=ClientSessionImpl [name=cc286
@rabidpraxis
rabidpraxis / run 1
Created October 24, 2012 20:10
torquebox service loading errors
View run 1
13:03:08,152 INFO [org.quartz.impl.StdSchedulerFactory] (MSC service thread 1-8) Quartz scheduler 'JobScheduler$inventory-knob.yml' initialized from an externally provided properties instance.13:03:08,153 INFO [org.quartz.impl.StdSchedulerFactory] (MSC service thread 1-8) Quartz scheduler version: 1.8.5
13:03:08,153 INFO [org.quartz.core.QuartzScheduler] (MSC service thread 1-8) JobFactory set to: org.torquebox.jobs.RubyJobProxyFactory@1fe585313:03:08,154 INFO [org.quartz.core.QuartzScheduler] (MSC service thread 1-8) Scheduler JobScheduler$inventory-knob.yml_$_kw-mba.local1351108988060 started.13:03:08,452 INFO [org.torquebox.core.runtime] (MSC service thread 1-3) Setting up Bundler
13:03:08,459 INFO [org.torquebox.core.runtime] (MSC service thread 1-7) Setting up Bundler13:03:13,770 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016037: Could not find new XAResource to use for recovering non-serializable XAResource XAResourceRecord < resource:null, txid:< formatId=131077, gtrid_length=29, bqual_
@rabidpraxis
rabidpraxis / gist:3801093
Created September 28, 2012 17:19
gem warning
View gist:3801093
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK
GET http://rubygems.org/quick/Marshal.4.8/jquery-rails-2.1.3.gemspec.rz
302 Moved Temporarily
GET http://production.cf.rubygems.org/quick/Marshal.4.8/jquery-rails-2.1.3.gemspec.rz
200 OK
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily