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
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2018-08-20T07:13:23-05:00</updated><id>http://localhost:4000/</id><title type="html">Apache Cassandra Website</title><subtitle>The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data. Cassandra's support for replicating across multiple datacenters is best-in-class, providing lower latency for your users and the peace of mind of knowing that you can survive regional outages. | |
</subtitle><entry><title type="html">Hardware-bound Zero Copy Streaming in Apache Cassandra 4.0</title><l |
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.vertx.core.http.HttpHeaders | |
import io.vertx.core.http.HttpServerRequest | |
import io.vertx.core.json.JsonObject | |
import io.vertx.ext.apex.RoutingContext | |
import io.vertx.ext.apex.handler.impl.AuthHandlerImpl | |
import io.vertx.ext.auth.AuthProvider; | |
class BearerAuthHandler extends AuthHandlerImpl { |
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 beckje01 on github. | |
* I am beckje01 (https://keybase.io/beckje01) on keybase. | |
* I have a public key whose fingerprint is 857D 6372 9EA4 7492 4FB7 D95A C3C2 391B B016 F80A | |
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
import org.apache.log4j.MDC | |
class LoggingFilters { | |
public static final String CORRELATION_HEADER = "X-CorrelationId" //Our Standard | |
def filters = { | |
correlationId(controller: '*', action: '*') { //For all requests | |
before = { | |
String correlationId = request.getHeader(CORRELATION_HEADER) |
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
@Grab('io.ratpack:ratpack-groovy:0.9.6') | |
import ratpack.registry.RegistrySpec | |
import static ratpack.groovy.Groovy.* | |
import static ratpack.registry.Registries.registry | |
ratpack { | |
handlers { | |
handler { |
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
get { HttpClient httpClient -> | |
def result = httpClient.request("http://beckje01.com", { RequestSpec requestSpec -> | |
requestSpec.body.type("text/plain").stream { it << request.body.text } | |
requestSpec.method(request.method.toString()) | |
request.headers.getNames().each { | |
requestSpec.headers.set(it, request.headers.get(it)) | |
} | |
}) | |
result.onError({ |
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
c_cyan=`tput setaf 6` | |
c_red=`tput setaf 1` | |
c_green=`tput setaf 2` | |
c_sgr0=`tput sgr0` | |
parse_git_branch () | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then | |
git_status="$(git status 2> /dev/null)" |
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
{states:[ | |
{ | |
state: valid, | |
startDate: 2013-12-25T21:15Z, | |
endDate: null | |
}, | |
{ | |
state: pending, | |
startDate: 2013-12-25T21:15Z, | |
endDate: 2013-12-25T21:15Z |
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
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' | |
xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd'> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.greatconf</groupId> | |
<artifactId>example-api</artifactId> | |
<version>0.1</version> | |
<packaging>pom</packaging> | |
<name>example-api</name> | |
<build> | |
<sourceDirectory> |
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.reachlocal.product.gson | |
import com.google.gson.GsonBuilder | |
import grails.plugin.gson.converters.GSON | |
import org.codehaus.groovy.grails.commons.ApplicationHolder | |
class ExposedGSON extends GSON { | |
@Lazy | |
private GsonBuilder gsonBuilder = { |
NewerOlder