Skip to content

Instantly share code, notes, and snippets.

View nicolai86's full-sized avatar
🏠
Working from home

Raphael Randschau nicolai86

🏠
Working from home
View GitHub Profile
@nicolai86
nicolai86 / main.go
Last active December 25, 2016 17:14
zipkin ES response percentiles
package main
import (
"flag"
"fmt"
"os"
"sort"
"time"
"github.com/gonum/plot"
at zipkin.internal.JsonCodec.exceptionReading(JsonCodec.java:713) ~[zipkin-1.16.1.jar!/:na]
at zipkin.internal.JsonCodec.readList(JsonCodec.java:642) ~[zipkin-1.16.1.jar!/:na]
at zipkin.internal.JsonCodec.readSpans(JsonCodec.java:477) ~[zipkin-1.16.1.jar!/:na]
at zipkin.collector.Collector.acceptSpans(Collector.java:93) ~[zipkin-1.16.1.jar!/:na]
at zipkin.server.ZipkinHttpCollector.validateAndStoreSpans(ZipkinHttpCollector.java:86) [classes/:na]
at zipkin.server.ZipkinHttpCollector.uploadSpansJson(ZipkinHttpCollector.java:63) [classes/:na]
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_112]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_112]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) [spring-web-4.3.3.RELEASE.jar!/:4.3.3.RELEASE]
@nicolai86
nicolai86 / Dockerfile
Last active October 11, 2016 17:43
golang plugins /w `net/rpc` & docker
FROM scratch
ADD my-plugin /
ENTRYPOINT ["/my-plugin"]
@nicolai86
nicolai86 / main.go
Last active November 1, 2020 16:43
AWS es Proxy in go
package main
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
# mattermost database settings
postgresql_database: mattermost
postgresql_username: mmuser
postgresql_password: Lnj9U8dsMCLjjxgcdL
@nicolai86
nicolai86 / Vagrantfile
Created December 5, 2015 17:39
ansible setup for the url shortener
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@nicolai86
nicolai86 / Cargo.toml
Created April 17, 2015 06:07
whitespace panic
[package]
name = "test"
version = "0.1.0"
authors = ["Raphael Randschau <[email protected]>"]
[dependencies]
serde_macros = "0.3.1"
[dependencies.serde]
git = "https://github.com/oli-obk/rust-serde.git"
@nicolai86
nicolai86 / currency-api.go
Last active November 6, 2015 01:05
a tiny currency exchange rates api written in go
package main
import (
"encoding/json"
"encoding/xml"
"fmt"
"io"
"log"
"net/http"
"os"
@nicolai86
nicolai86 / broken proxy
Created October 11, 2014 15:16
proxy + 2 http servers
package main
import (
"fmt"
"net/http"
)
func main() {
go func() {
server := http.Server{Addr: ":8081", Handler: http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {

Keybase proof

I hereby claim:

  • I am nicolai86 on github.
  • I am nicolai86 (https://keybase.io/nicolai86) on keybase.
  • I have a public key whose fingerprint is 1F86 6529 B001 0298 46AC 3C05 CE74 C269 531C 189A

To claim this, I am signing this object: