Skip to content

Instantly share code, notes, and snippets.

@progrium
progrium / consulkv
Created June 4, 2014 22:21
Consul KV client, depends on jq
#!/bin/bash
CONSUL="localhost:8500"
main() {
case "$1" in
info)
curl -s "$CONSUL/v1/kv/$2" | jq -r .[]
;;
get)
@cutoffthetop
cutoffthetop / hbase.rb
Created December 8, 2013 20:15
Custom Logstash output for HBase
# encoding: utf-8
require 'logstash/outputs/base'
require 'logstash/namespace'
class LogStash::Outputs::HBase < LogStash::Outputs::Base
config_name 'hbase'
milestone 2
# The HBase server uri