This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yammer.testvendor; | |
import com.yammer.dropwizard.jersey.JacksonMessageBodyProvider; | |
import com.yammer.dropwizard.json.Json; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.MediaType; | |
import java.lang.annotation.Annotation; | |
import java.lang.reflect.Type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <errno.h> | |
int main(int argc, char* argv[]) { | |
int i; | |
char* argv2[argc+3]; | |
argv2[0] = "java"; | |
argv2[1] = "-cp"; | |
argv2[2] = argv[0]; | |
argv2[3] = "org.objectweb.asm.util.ASMifier"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Target(ElementType.METHOD) | |
@Retention(RetentionPolicy.RUNTIME) | |
public @interface Audited { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hypnoticocelot.github; | |
import io.dropwizard.jackson.Jackson; | |
import io.dropwizard.jersey.jackson.JacksonMessageBodyProvider; | |
import org.junit.Before; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import javax.ws.rs.client.Client; | |
import javax.ws.rs.client.ClientBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ryankennedy on github. | |
* I am rckenned (https://keybase.io/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node substring.js 🙅🏿 | |
🙅🏿.substring(0, 1) = � | |
🙅🏿.substring(0, 2) = 🙅 | |
🙅🏿.substring(0, 3) = 🙅� | |
🙅🏿.substring(0, 4) = 🙅🏿 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.regions.RegionUtils; | |
import com.amazonaws.services.sns.AmazonSNS; | |
import com.amazonaws.services.sns.AmazonSNSClient; | |
import com.amazonaws.services.sns.model.Endpoint; | |
import com.amazonaws.services.sns.model.ListEndpointsByPlatformApplicationRequest; | |
import com.amazonaws.services.sns.model.ListEndpointsByPlatformApplicationResult; | |
import com.amazonaws.services.sns.model.SetEndpointAttributesRequest; | |
import com.google.common.collect.ImmutableMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 sun.net.ExtendedOptionsImpl.<clinit>(ExtendedOptionsImpl.java:47) ~[na:1.8.0_20] | |
! at sun.nio.ch.SocketChannelImpl$DefaultOptionsHolder.defaultOptions(SocketChannelImpl.java:241) ~[na:1.8.0_20] | |
! at sun.nio.ch.SocketChannelImpl$DefaultOptionsHolder.<clinit>(SocketChannelImpl.java:228) ~[na:1.8.0_20] | |
! at sun.nio.ch.SocketChannelImpl.supportedOptions(SocketChannelImpl.java:250) ~[na:1.8.0_20] | |
! at sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:169) ~[na:1.8.0_20] | |
! at sun.nio.ch.SocketAdaptor.setBooleanOption(SocketAdaptor.java:271) ~[na:1.8.0_20] | |
! at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:306) ~[na:1.8.0_20] | |
! at org.eclipse.jetty.server.AbstractConnector.configure(AbstractConnector.java:391) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.dropwizard.Application; | |
import io.dropwizard.setup.Environment; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.HeaderParam; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.PathParam; | |
import java.util.UUID; | |
public class TestUuidApplication extends Application<TestUuidConfiguration> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./wrk -t 10 -c 50 -d 60s --latency --timeout 15s http://hw9j2li3ma.execute-api.us-east-1.amazonaws.com/prod/NodeSayHello | |
Running 1m test @ http://hw9j2li3ma.execute-api.us-east-1.amazonaws.com/prod/NodeSayHello | |
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 |