Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Owens intjonathan

View GitHub Profile
@victorcoder
victorcoder / haproxy.lua
Last active Feb 24, 2017
Heka haproxy lua decoder
View haproxy.lua
local dt = require "date_time"
local ip = require "ip_address"
local l = require 'lpeg'
local syslog = require "syslog"
l.locale(l)
local msg = {
Timestamp = nil,
Hostname = nil,
Payload = nil,
@rafrombrc
rafrombrc / message_types.md
Last active Oct 26, 2016
Heka internal message types
View message_types.md
  • heka.counter-output: Generated by CounterFilter. Usually picked up by a LogOutput for writing to stdout.

  • heka.plugin-report: Used inside the reporting infrastructure for plugins to provide report data to the dashboard, typically not injected into the router at all.

  • heka.input-report: Used inside the reporting infrastructure for the input recycle chan to provide report data to the dashboard, typically not injected into the router at all.

  • heka.inject-report: Used inside the reporting infrastructure for the inject recycle chan to provide report data to the dashboard, typically not injected into the router at all.

  • heka.router-report: Used inside the reporting infrastructure for the router to provide report data to the dashboard, typically not injected into the router at all.

@spkane
spkane / ree-1.8.7-2012.02
Last active Dec 31, 2015
Ruby 2.0.0-p247 - OpenSSL Patch for CentOS 6.5
View ree-1.8.7-2012.02
require_gcc
install_package "ruby-enterprise-1.8.7-2012.02" "file:///tmp/build/ruby-enterprise-openssl-1.8.7-2012.02.tar.gz" ree_installer
View PuppetConf_2013.md

Glad you're here!

PuppetConf 2013 Presentation (fryman)

but!

let's keep this our secret. If the talk hasn't started yet, please don't tell those around you about this page. sure, hint and all... but it's more fun if they find it themselves. Also, don't tweet about this until I ask you to (and yes, I'll ask you to. Pretty please? can you? oh, you're the best. I knew you would.).

I do promise I'll tell everyone eventually, but for now you can feel good you found this page before your friend Bob.

@joemiller
joemiller / raid_ephemeral.sh
Last active Jan 27, 2021
detect all ephemeral disks on EC2 then stripe together in a raid-0 vol mounted at /mnt
View raid_ephemeral.sh
#!/bin/bash
#
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe
# mounted at /mnt. It should be run early on the first boot of the system.
#
# Beware, This script is NOT fully idempotent.
#
METADATA_URL_BASE="http://169.254.169.254/2012-01-12"