Skip to content

Instantly share code, notes, and snippets.

We wanted flying cars, instead we got GitHub status

Michael Klishin michaelklishin

We wanted flying cars, instead we got GitHub status
Block or report user

Report or block michaelklishin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
michaelklishin / per_queue_message_ttl.rb
Created Jul 29, 2011
An example of using per-queue message time-to-live feature of RabbitMQ with amqp gem 0.8.0
View per_queue_message_ttl.rb
require 'amqp'
require "amqp/extensions/rabbitmq"
AMQP.start do |connection|
puts "Connected!"
channel =
channel.on_error do |ch, channel_close|
puts "Oops! a channel-level exception: #{channel_close.reply_text}"
View Installing RabbitMQ 3.6.3+ Debian package on Ubuntu 12.04
+# Add Debian Wheezy backports repository to obtain init-system-helpers
+gpg --keyserver --recv-key 7638D0442B90D010
+gpg -a --export 7638D0442B90D010 | sudo apt-key add -
+echo 'deb wheezy-backports main' | sudo tee /etc/apt/sources.list.d/wheezy_backports.list
+# Add Erlang Solutions repository to obtain esl-erlang
+wget -O- | sudo apt-key add -
+echo 'deb wheezy contrib' | sudo tee /etc/apt/sources.list.d/esl.list
+sudo apt-get update

The RabbitMQ team has been looking at the performance differences between the latest RMQ releases. After benchmarking multiple RabbitMQ version/Erlang version/build environment permutations, we have some findings to share.

The new management plugin and stats emission/collection implementation in RabbitMQ 3.6.7 produces a slight drop in performance in some workloads.

Another finding suggests that RabbitMQ packages compiled in Erlang R16B03 (such as the 3.6.x releases produced by our team) will have a minor throughput drop when running on Erlang 20.x. Packages built on Erlang 19.x.x and ran on Erlang 20.x.x showed no such difference.


Dear RabbitMQ community,

We have an update on Erlang/OTP 20 and RabbitMQ compatibility.

First, let's clarify when OTP 20 support will be available: RabbitMQ versions before 3.6.11 will not work correctly with OTP-20.

What's the risk of upgrading from 19.x to 20 on an unsupported version? When upgrading from OTP-19.x(or earlier) to OTP-20 all the persistent data will be permanently lost!

michaelklishin / js2-mode.el
Created May 10, 2011
js2-mode by Steve Yegge
View js2-mode.el
;;; js2.el -- an improved JavaScript editing mode
;;; This file was auto-generated on Thu Jul 23 16:21:42 2009 from files:
;;; js2-externs.el
;;; js2-vars.el
;;; js2-util.el
;;; js2-scan.el
;;; js2-messages.el
;;; js2-ast.el
;;; js2-highlight.el
View gist:1223625
[base] [Fri, 16 Sep 2011 21:31:55 -0700] DEBUG: Chef::Exceptions::ShellCommandFailed: bash[installing gem chef for 1.8.6] (rvm::multi line 48) had an error: Expected process to exit 0, but it exited with 134
---- Begin output of "bash" "/tmp/chef-script20110916-1086-mnz7p-0" ----
STDOUT: Using /home/vagrant/.rvm/gems/ruby-1.8.6-p420
STDERR: *** buffer overflow detected ***: ruby terminated
======= Backtrace: =========
michaelklishin / gist:1223640
Created Sep 17, 2011
Why Ruby 1.8.6 and 1.9.1 are no longer provided on, effective September 17th, 2011
View gist:1223640

There are 3 reasons for doing this:

  • Neither of those versions is actively maintained.

  • Neither of those versions is actively used.

  • They cause us maintenance problems (like 1.8.6 not being able to install gems or 1.9.1 failing to compile (!)), and is maintained by literally a handful of people in their spare time.

For example, we had to do the following:


RabbitMQ team is proud to announce that starting from the version 3.7.0 RabbitMQ will come with the new command line tools, known as rabbitmqctl.

The reasoning behind this change is that in previous versions rabbitmqctl was deeply integrated into server code, which made it hard to implement new commands, extend and modify existing commands.

The tools is written on [Elixir][elixir] programming language. This will make it easier for people new to erlang to start extending the tools. Although after built, the tools don't require Elixir to be installed.


Keybase proof

I hereby claim:

  • I am michaelklishin on github.
  • I am michaelklishin ( on keybase.
  • I have a public key whose fingerprint is 07CF 80D8 1AE4 711A FF3F 045A E80E DCFA 0CDB 21EE

To claim this, I am signing this object:

View gist:2851251
# Downloads and installs the startssl CA certs into the global java keystore
# Author: Klaus Reimer <>
# Check if JAVA_HOME is set
if [ "$JAVA_HOME" = "" ]
echo "ERROR: JAVA_HOME must be set."
You can’t perform that action at this time.