Skip to content

Instantly share code, notes, and snippets.

View 2potatocakes's full-sized avatar

Lucas Hills 2potatocakes

View GitHub Profile

Keybase proof

I hereby claim:

  • I am 2potatocakes on github.
  • I am 2potatocakes (https://keybase.io/2potatocakes) on keybase.
  • I have a public key ASBcq1vA3VZ5MgSUSV_6iQaKGF-P1uoO4_CUcC5xIeK_qAo

To claim this, I am signing this object:

@2potatocakes
2potatocakes / receiver.rb
Created May 1, 2012 05:10
amq stomp error
I, [2012-05-01T11:53:03.493289 #3624] INFO -- : Logger initialization complete.
D, [2012-05-01T11:53:03.494289 #3624] DEBUG -- : Connecting: Host: 10.70.31.39, Port: 61613, Login: Port: , Passcode: , ssl: false
D, [2012-05-01T11:53:03.501290 #3624] DEBUG -- : Connected: Host: 10.70.31.39, Port: 61613, Login: Port: , Passcode: , ssl: false
I, [2012-05-01T11:53:03.501290 #3624] INFO -- : Using STOMP gem Version: 1.2.2
I, [2012-05-01T11:53:03.502290 #3624] INFO -- : Subscribing to /queue/font_request
D, [2012-05-01T11:53:03.502290 #3624] DEBUG -- : Subscribe Parms Host: 10.70.31.39, Port: 61613, Login: Port: , Passcode: , ssl: false
D, [2012-05-01T11:53:03.502290 #3624] DEBUG -- : Subscribe Headers destination/queue/font_requestackclient
D, [2012-05-01T11:53:08.218762 #3624] DEBUG -- : Receive Parms Host: 10.70.31.39, Port: 61613, Login: Port: , Passcode: , ssl: false
D, [2012-05-01T11:53:08.218762 #3624] DEBUG -- : Receive Result <Stomp::Message headers={"expires"=>"1335211972613", "timestamp"=>"133521197161
@2potatocakes
2potatocakes / rz_comparison
Created February 14, 2012 23:36
Rubyzip corrupt file comparison when using on Windows
Before open / close with rubyzip - working After open / close with rubyzip - broken
TOTAL SIZE OF FILE: 9853 TOTAL SIZE OF FILE: 9855
end of central dir sig : 101010256 end of central dir sig : 101010256
number of this disk : 0 number of this disk : 0
number of the disk with the number of the disk with the
start of the central directory : 0 start of the central directory : 0
total number of entries in the total number of entries in the
central directory on this disk : 6 central directory on this disk : 6
total number of entries in total number of entries in
@2potatocakes
2potatocakes / example.rb
Created September 9, 2011 02:44
disconnect results in "Transport failed" error in ActiveMQ when using hashed login
####Example 1 - Connecting to stomp without using a Hash seems to work correctly
require 'stomp'
@queue_name = "/queue/testing_kill_thread"
@subscription_headers = {:ack => 'client'}
thread = Thread.new do
@stomp = Stomp::Connection.new('', '', 'localhost', 61613, false)
@stomp.subscribe(@queue_name, @subscription_headers)
msg = @stomp.receive