Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View michaelklishin's full-sized avatar

Michael Klishin michaelklishin

View GitHub Profile
The Cloud Foundry engineering team is looking for a few great
Site Reliability Engineers (SREs)
to join us in running a platform that transforms how the world
deploys and scales software.
== Desired Skills and Experience
Strong background
with CentOS and/or Ubuntu
Experience with
%% 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
michaelklishin / gist:5773285
Created June 13, 2013 12:26
3 cipher suites Wireshark supports
TLS_RSA_WITH_RC4_128_SHA
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_RSA_WITH_AES_256_CBC_SHA
require 'formula'
class Wireshark < Formula
homepage 'http://www.wireshark.org'
url 'http://www.wireshark.org/download/src/wireshark-1.8.6.tar.bz2'
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
michaelklishin / latency.txt
Created June 19, 2012 00:13 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
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
michaelklishin / mysql.js
Created June 6, 2012 05:27 — forked from ciberch/mysql.js
Activity Query with Relational DB
// no, node.js does not suffer from the callback spaghetti. Never.
Bug
.select('createdAt', 'creatorId', 'name', 'url', 'description')
.page(0, 10)
.order('createdAt DESC')
.all(function(err, bugs) {
Commit
.select('createdAt', 'creatorId', 'name', 'url', 'description')
.page(0, 10)
.order('createdAt DESC')
#!/bin/sh
#
# Downloads and installs the startssl CA certs into the global java keystore
# Author: Klaus Reimer <k@ailis.de>
#
# Check if JAVA_HOME is set
if [ "$JAVA_HOME" = "" ]
then
echo "ERROR: JAVA_HOME must be set."
~ 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)
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}"
language: java
before_install:
- sudo apt-get install openjdk-7-jdk
- sudo apt-get remove openjdk-6-jdk