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
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
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
#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
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
package com.yammer.runner; | |
import java.io.File; | |
import java.lang.reflect.Method; | |
import java.net.URL; | |
import java.net.URLClassLoader; | |
import java.util.Arrays; | |
import java.util.jar.Attributes; | |
import java.util.jar.JarFile; |
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
import com.sleepycat.je.*; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
public class NewIndexTest { | |
public static void main(String[] args) throws IOException { | |
File envHome = new File("bdb-temp-dir"); | |
try { |
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
Title: Scalable Application Specific Databases with Berkeley DB Java Edition | |
Short Description (400 chars): In 2011 Yammer replaced a creaking 10B row messaging | |
database with BDB JE. This improved our availability, simplified scaling and lowered | |
delivery latency. I will discuss evaluating whether BDB JE is right for your situation, | |
problems you may run into with along the way and useful patterns for leveraging BDB | |
JE as an embedded solution to building reliable application specific databases at scale. | |
Full Description (a few paragraphs): |
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
/** | |
* Set the duration for which commit point is to be reserved by the deletion policy. | |
* | |
* @param indexVersion version of the commit point to be reserved | |
* @param reserveTime time in milliseconds for which the commit point is to be reserved | |
*/ | |
public void setReserveDuration(Long indexVersion, long reserveTime) { | |
long timeToSet = System.currentTimeMillis() + reserveTime; | |
for(;;) { | |
Long previousTime = reserves.put(indexVersion, timeToSet); |