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
View rabbitmq.config
%% Disable SSLv3.0 support
{ssl, [{versions, ['tlsv1.2', 'tlsv1.1', tlsv1]}]},
{rabbit, [
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile,"/path/to/ca_certificate.pem"},
{certfile, "/path/to/server_certificate.pem"},
{keyfile, "/path/to/server_key.pem"},
{versions, ['tlsv1.2', 'tlsv1.1', tlsv1]}
michaelklishin / gist:5773285
Created Jun 13, 2013
3 cipher suites Wireshark supports
View gist:5773285
View wireshark.rb
require 'formula'
class Wireshark < Formula
homepage ''
url ''
sha1 '0f51ed901b5e07cceb1373f3368f739be8f1e827'
option 'with-x', 'Include X11 support'
option 'with-qt', 'Use QT for GUI instead of GTK+'
option 'with-ssl', 'Enable SSL support'
michaelklishin / latency.txt
Created Jun 19, 2012 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
michaelklishin / mysql.js
Created Jun 6, 2012 — forked from ciberch/mysql.js
Activity Query with Relational DB
View mysql.js
// no, node.js does not suffer from the callback spaghetti. Never.
.select('createdAt', 'creatorId', 'name', 'url', 'description')
.page(0, 10)
.order('createdAt DESC')
.all(function(err, bugs) {
.select('createdAt', 'creatorId', 'name', 'url', 'description')
.page(0, 10)
.order('createdAt DESC')
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."
View gist:2721068
~ LEIN_JVM_OPTS="-Dfile.encoding=UTF-8" l2 repl
nREPL server started on port 50233
Welcome to REPL-y!
Clojure 1.4.0
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
(user/sourcery function-name-here)
View gist:2402721
diff --git a/spec/install/gems/sudo_spec.rb b/spec/install/gems/sudo_spec.rb
index 3894f76..c2d5444 100644
--- a/spec/install/gems/sudo_spec.rb
+++ b/spec/install/gems/sudo_spec.rb
@@ -20,8 +20,7 @@ describe "when using sudo", :sudo => true do
it "installs when BUNDLE_PATH is owned by root" do
bundle_path = tmp("owned_by_root")
- FileUtils.mkdir_p bundle_path
- sudo "chown -R root #{bundle_path}"
View .travis.yml
language: java
- sudo apt-get install openjdk-7-jdk
- sudo apt-get remove openjdk-6-jdk
michaelklishin / gist:2046014
Created Mar 15, 2012 — forked from akitaonrails/gist:1724673
Fixing Apachebench on OS X Lion
View gist:2046014
# If you're getting this error trying to use ApacheBench on OS X Lion:
# Benchmarking (be patient)...apr_socket_recv: Connection reset by peer (54)
# You need to download the latest beta version of Apache and rebuild ab.
# Here's how (assuming you have homebrew installed).
# Install Homebrew ( and then the Perl Regex support
brew install pcre
# Download the latest from, then decompress and compile it
You can’t perform that action at this time.