Skip to content

Keybase proof

I hereby claim:

  • I am andrewvc on github.
  • I am andrewvc ( on keybase.
  • I have a public key whose fingerprint is D111 4B56 078A A1FF A5FD 7DE3 46AC D7C3 2B45 0C77

To claim this, I am signing this object:

View simplekv.conf
input {
generator {
message => "baz=bot blah=bar"
count => 10000000
filter {
kv {}
mutate {
View apache-no-io
input {
stdin {}
filter {
grok {
match => {
"message" => '%{IPORHOST:clientip} %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "%{WORD:verb} %{DATA:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response:int} (?:-|%{NUMBER:bytes:int}) %{QS:referrer} %{QS:agent}'
View gist:b25097d19aa50df8e05f
input {
generator {
lines => ["foo", "bar", "baz", "something bad"]
count => 1000000
filter {
if [message] == "foo" {
mutate { add_field => { "is_foo" => true }}
View lightshow.c
#include <stdio.h>
#include <stdlib.h>
#include <wiringPi.h>
#include <unistd.h>
typedef struct
int num;
int state;
} Pin;
View documents.yaml
_type: product
name: Vacuum Cleaner
_type: product
name: Turkey Baster
View elasticsearch.conf
# ElasticSearch upstart script
description "ElasticSearch service"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]

An Elasticsearch in Crash Course!

By Andrew Cholakian

All examples use the Stretcher ruby gem

What is Elasticsearch?

  • An Information Retrieval (IR) System
  • A way to search your data in terms of natural language, and so much more
View version_sort.rb
# Turn version number into a 48 bit value (16 bits per version number) that is comparable to other versions
def rank_version(ver_str)
reduce([5*16,0]) {|acc,v| #These vars are horribly named
[i - 16, a | (v << i) ]
View index.haml
%label#ajax-method-label{for: "method"} Method
%label#server-label{for: "server"} Server
%label#path-label{for: "Path"} Path
%select#ajax-method{name: "method"}
%option{value: "GET"} GET
%option{value: "PUT"} PUT
Something went wrong with that request. Please try again.