Skip to content

Instantly share code, notes, and snippets.

Ryan Kennedy ryankennedy

Block or report user

Report or block ryankennedy

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
ryankennedy / proto_parse.feature
Last active Sep 6, 2017
Cucumber definition for a simple Protocol Buffer parsing test
View proto_parse.feature
Feature: Parsing Protocol Buffer schemas
Scenario: Parsing a valid Protocol Buffer schema
Given a Protocol Buffer schema named my_message.proto with body
syntax = "proto3";
message MyMessage {
string message_content = 1;
ryankennedy / hw-base.txt
Created Apr 22, 2016
Benchmark results comparing the baseline TechEmpower Dropwizard code with a version packing an optimized Guava.
View hw-base.txt
Primer Requests
Running 5s test @ http://localhost:9090/json
8 threads and 8 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 11.61ms 28.59ms 287.04ms 96.75%
Req/Sec 169.75 52.18 300.00 69.27%
Latency Distribution
50% 7.11ms
ryankennedy /
Created Apr 22, 2016
Script that replicates the traffic being generated by the TechEmpower JSON serving benchmark.
CONNECTION_HEADER="Connection: keep-alive"
# Parameters:
ryankennedy / ab.log
Created Oct 23, 2015
ApacheBench SSL error
View ab.log
ab -c 1 -n 1
This is ApacheBench, Version 2.3 <$Revision: 1663405 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking (be patient)...SSL handshake failed (1).
10445:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:/BuildRoot/Library/Caches/
View east_coast_nodejs_wrk.log
$ ./wrk -t 10 -c 50 -d 60s --latency --timeout 15s
Running 1m test @
10 threads and 50 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.22ms 3.93ms 206.21ms 93.68%
Req/Sec 1.72k 366.83 2.19k 83.31%
Latency Distribution
50% 2.34ms
75% 2.59ms
90% 4.61ms
import io.dropwizard.Application;
import io.dropwizard.setup.Environment;
import java.util.UUID;
public class TestUuidApplication extends Application<TestUuidConfiguration> {
ryankennedy / asplode.log
Created Sep 28, 2015
telemetry-example blowing up in Java 8
View asplode.log
WARN [2015-09-28 04:48:24,010] org.eclipse.jetty.server.AbstractConnector:
! java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: Could not initialize class java.lang.invoke.CallSite
! at<clinit>( ~[na:1.8.0_20]
! at$DefaultOptionsHolder.defaultOptions( ~[na:1.8.0_20]
! at$DefaultOptionsHolder.<clinit>( ~[na:1.8.0_20]
! at ~[na:1.8.0_20]
! at ~[na:1.8.0_20]
! at ~[na:1.8.0_20]
! at ~[na:1.8.0_20]
! at org.eclipse.jetty.server.AbstractConnector.configure( ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]
ryankennedy /
Created Sep 11, 2015
Bulk re-enable SNS endpoints
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.RegionUtils;
ryankennedy / output.txt
Created Sep 11, 2015
node trying to do substring on unicode
View output.txt
$ node substring.js 🙅🏿
🙅🏿.substring(0, 1) = �
🙅🏿.substring(0, 2) = 🙅
🙅🏿.substring(0, 3) = 🙅�
🙅🏿.substring(0, 4) = 🙅🏿
View gist:326671af8a6f6fe509c3
### Keybase proof
I hereby claim:
* I am ryankennedy on github.
* I am rckenned ( on keybase.
* I have a public key whose fingerprint is 85FC 20AA E092 3128 DBE7 61F6 5344 89C6 1213 23D0
To claim this, I am signing this object:
You can’t perform that action at this time.