Skip to content

Instantly share code, notes, and snippets.

@bantic
Created January 21, 2009 23:14
Show Gist options
  • Save bantic/50332 to your computer and use it in GitHub Desktop.
Save bantic/50332 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
#
require 'rubygems'
require 'mq'
AMQP.start{
i = 0
10.times do
i += 1
puts "publishing #{i}"
MQ.queue(ARGV[0]).publish(i)
puts "z" * 50
sleep 2
end
AMQP.stop { EM.stop }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment