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
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 / ec2-bootstrap.sh
Created April 11, 2012 22:14
ec2-bootstrap
#!/bin/bash
set -e -x
#==============================================================================
# Initial Dependecies
#==============================================================================
sudo apt-get -y update
sudo apt-get -y install curl python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng-experimental
sudo apt-get -y update
@rabidpraxis
rabidpraxis / chef.log
Created June 22, 2012 02:27
chef-defunct-debug-log
[2012-06-22T02:15:50+00:00] INFO: *** Chef 10.12.0 ***
[2012-06-22T02:15:50+00:00] DEBUG: Loading plugin os
[2012-06-22T02:15:50+00:00] DEBUG: Loading plugin kernel
[2012-06-22T02:15:50+00:00] DEBUG: Loading plugin ruby
[2012-06-22T02:15:50+00:00] DEBUG: Loading plugin languages
[2012-06-22T02:15:50+00:00] DEBUG: ---- Begin ruby -e "require 'rbconfig'; puts %Q(platform=#{RUBY_PLATFORM},version=#{RUBY_VERSION},release_date=#{RUBY_RELEASE_DATE},target=#{::Config::CONFIG['target']},target_cpu=#{::Config::CONFIG['target_cpu']},target_vendor=#{::Config::CONFIG['target_vendor']},target_os=#{::Config::CONFIG['target_os']},host=#{::Config::CONFIG['host']},host_cpu=#{::Config::CONFIG['host_cpu']},host_os=#{::Config::CONFIG['host_os']},host_vendor=#{::Config::CONFIG['host_vendor']},bin_dir=#{::Config::CONFIG['bindir']},ruby_bin=#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},)" STDOUT ----
[2012-06-22T02:15:50+00:00] DEBUG: platform=x86_64-linux,version=1.9.3,release_date=2012-04-20,ta
@rabidpraxis
rabidpraxis / gist:3177425
Created July 25, 2012 17:33
torquebox queue exception
NativeException in Admin::ProductCampaignsController#send_data_to_dibs
javax.jms.JMSException: There is no queue with name /queues/test_queue
org/hornetq/jms/client/HornetQSession.java:407:in `createQueue'
org/jruby/RubyBasicObject.java:1704:in `__send__'
org/jruby/RubyKernel.java:2101:in `send'
torquebox-messaging-2.0.3 (java) lib/torquebox/messaging/session.rb:147:in `java_destination'
torquebox-messaging-2.0.3 (java) lib/torquebox/messaging/session.rb:42:in `publish'
torquebox-messaging-2.0.3 (java) lib/torquebox/messaging/destination.rb:72:in `publish'
queue = TorqueBox::Messaging::Queue.new('/queues/test_queue')
queue.publish('test message')
@rabidpraxis
rabidpraxis / server.log
Created July 30, 2012 16:31
torquebox server log
16:10:14,715 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 43) JBAS016200: Activating ConfigAdmin Subsystem
16:10:14,732 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 127.0.0.1:9999
16:10:14,753 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 48) JBAS010280: Activating Infinispan subsystem.
16:10:14,759 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 49) JBAS016300: Activating JacORB Subsystem
16:10:14,812 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 44) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:10:14,848 INFO [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 54) JBAS010260: Activating JGroups subsystem.
16:10:14,893 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 62) JBAS011906: Activating OSGi Subsystem
16:10:14,917 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 61) JBAS011800: Activating Naming Subsystem
16:10:1
@rabidpraxis
rabidpraxis / server.log
Created July 30, 2012 16:59
torquebox loading errors
16:53:43,298 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 44) JBAS016200: Activating ConfigAdmin Subsystem
16:53:43,341 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 49) JBAS010280: Activating Infinispan subsystem.
16:53:43,376 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 50) JBAS016300: Activating JacORB Subsystem
16:53:43,433 INFO [org.jboss.as.connector.logging] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.11.Final)
16:53:43,435 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 45) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:53:43,442 INFO [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 55) JBAS010260: Activating JGroups subsystem.
16:53:43,514 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 62) JBAS011800: Activating Naming Subsystem
16:53:43,516 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 63) JBAS011
@rabidpraxis
rabidpraxis / gist:3370582
Created August 16, 2012 14:36
Queue service
class Service
def initialize(opts={})
end
def start
Thread.new do
until @done
queue = TorqueBox::Messaging::Queue.new('/queue/something')
if response = queue.receive
p "edit response"
@rabidpraxis
rabidpraxis / gist:3371266
Created August 16, 2012 15:51
singleton processor
queue '/queues/process' do
processor Process do
singleton true
end
end
@rabidpraxis
rabidpraxis / gist:3371379
Last active October 8, 2015 18:28
why HornetQ, WHY!!?!
16:04:57,383 INFO [stdout] (Thread-3 (HornetQ-client-global-threads-84819084)) Removing clusterName=f2aa7652-23a3-425e-96f7-081d164e15f91b22868b-da03-11e1-bf0d-f5e9b8f04f3a on ClusterConnectionImpl@206411207[nodeUUID=e67bbf7a-d9f5-11e1-bf40-57e76029d8a4, connector=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&host=10-248-66-161, address=jms, server=HornetQServerImpl::serverUUID=e67bbf7a-d9f5-11e1-bf40-57e76029d8a4]16:04:58,391 INFO [stdout] (Thread-3 (HornetQ-client-global-threads-84819084)) Removing clusterName=d9d5dcf2-0430-41a5-8e29-9c89c553ad681b22868b-da03-11e1-bf0d-f5e9b8f04f3a on ClusterConnectionImpl@206411207[nodeUUID=e67bbf7a-d9f5-11e1-bf40-57e76029d8a4, connector=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&host=10-248-66-161, address=jms, server=HornetQServerImpl::serverUUID=e67bbf7a-d9f5-11e1-bf40-57e76029d8a4]16:04:59,400 INFO [stdout] (Thread-3 (HornetQ-client-global-threads-84819084)) Removing clusterName=d075b605-8400-421d-89e2-d88f33953aa21b2