I hereby claim:
- I am gfrison on github.
- I am gfrison (https://keybase.io/gfrison) on keybase.
- I have a public key whose fingerprint is 83D5 27E0 3F34 C133 F4B3 11D4 1145 0972 D3CC EDA9
To claim this, I am signing this object:
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.nio.charset.Charset; | |
import java.util.Random; | |
import io.netty.handler.logging.LogLevel; | |
import io.reactivex.netty.protocol.http.client.HttpClient; | |
public class ConcatUpload | |
{ |
import com.thoughtworks.xstream.core.util.PrioritizedList | |
import groovy.transform.Field | |
import java.text.DecimalFormat | |
/** | |
* Dodgsons Duoblets | |
* | |
* User: gfrison | |
* http://programmingpraxis.com/2009/03/20/dodgsons-doublets/ |
I hereby claim:
To claim this, I am signing this object:
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = {HistrixIT.Config.class}) | |
public class HistrixIT | |
{ | |
@Autowired | |
private RemoteService service; | |
private static Function<String, String> function = mock(Function.class); | |
import java.net.MalformedURLException; | |
import java.nio.charset.Charset; | |
import java.util.Random; | |
import io.netty.buffer.ByteBuf; | |
import io.netty.buffer.Unpooled; | |
import io.reactivex.netty.RxNetty; | |
import io.reactivex.netty.protocol.http.client.HttpClientRequest; | |
import rx.Observable; |
import io.netty.buffer.ByteBuf; | |
import io.netty.handler.codec.http.HttpMethod; | |
import io.netty.handler.logging.LogLevel; | |
import io.netty.handler.proxy.HttpProxyHandler; | |
import io.reactivex.netty.protocol.http.client.HttpClient; | |
import io.reactivex.netty.protocol.http.client.HttpClientResponse; | |
import org.junit.Ignore; | |
import org.junit.Test; | |
import rx.Observable; |
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
%% ex: ts=4 sw=4 et | |
[ | |
{default_bucket_props, [{n_val,1}, | |
{allow_mult,false}, | |
{last_write_wins,false}, | |
{precommit, []}, | |
{postcommit, []}, | |
{chash_keyfun, {riak_core_util, chash_std_keyfun}}, | |
{linkfun, {modfun, riak_kv_wm_link_walker, mapreduce_linkfun}} |
Index: src/main/java/com/basho/riak/pbc/RiakObject.java | |
=================================================================== | |
--- src/main/java/com/basho/riak/pbc/RiakObject.java (revision 84) | |
+++ src/main/java/com/basho/riak/pbc/RiakObject.java (revision 125) | |
@@ -244,4 +244,8 @@ | |
return d; | |
} | |
+ public String getContentType() { | |
+ return contentType; |
import org.apache.camel.impl.DefaultCamelContext; | |
import org.apache.camel.language.groovy.GroovyRouteBuilder; | |
import org.apache.camel.* | |
@Grab(group='org.slf4j', module='slf4j-api', version='1.6.1') | |
@Grab(group='org.slf4j', module='slf4j-log4j12', version='1.6.1') | |
@Grab(group='org.apache.camel', module='camel-groovy', version='2.8.0') | |
@Grab(group='org.apache.camel', module='camel-core', version='2.8.0') | |
@Grab(group='org.apache.camel', module='camel-jetty', version='2.8.0') | |
class SampleRoute extends GroovyRouteBuilder { |
#!/bin/bash | |
START=$(date +%s.%N) | |
for i in {1..100}; | |
do | |
curl http://localhosT:3000/rest -d '<request>'>/dev/null 2>&1 | |
done; | |
END=$(date +%s.%N) | |
DIFF=$(echo "$END - $START" | bc) |