Skip to content

Instantly share code, notes, and snippets.

View cmeerbeek's full-sized avatar

Coen Meerbeek cmeerbeek

View GitHub Profile
@cmeerbeek
cmeerbeek / collectd.conf
Created January 15, 2020 13:50
Collectd.conf for Splunk App for Infrastructure (via HEC)
#
# Config file for collectd(1).
# Please read collectd.conf(5) for a list of options.
# http://collectd.org/
#
##############################################################################
# Global #
#----------------------------------------------------------------------------#
# Global settings for the daemon. #

Keybase proof

I hereby claim:

  • I am cmeerbeek on github.
  • I am cmeerbeek (https://keybase.io/cmeerbeek) on keybase.
  • I have a public key ASDaj8WsQgo7oOvd0I8qe9ureNdkNmvu-B9Z1TGQjEUiqgo

To claim this, I am signing this object:

@cmeerbeek
cmeerbeek / octopus-modinput.py
Created May 23, 2017 20:14
Python code for Octopus Deploy Splunk Add-on Builder demo
# encoding = utf-8
import os
import sys
import time
import datetime
'''
IMPORTANT
Edit only the validate_input and collect_events functions.
require 'fluent/output'
require 'net/http'
require 'json'
module Fluent
class SplunkHECOutput < BufferedOutput
Fluent::Plugin.register_output('splunkhec', self)
# Primary Splunk configuration parameters
config_param :host, :string, :default => 'localhost', :required => true
@cmeerbeek
cmeerbeek / in_magento2.rb
Created October 31, 2016 19:31
Magento2 Input Plugin FluentD
require "fluent/input"
require "rest-client"
require "json"
require "oauth"
class Fluent::Magento2Input < Fluent::Input
Fluent::Plugin.register_input("magento2", self)
# To support log_level option implemented by Fluentd v0.10.43
unless method_defined?(:log)
@cmeerbeek
cmeerbeek / metabox_evenementen.php
Created January 21, 2014 20:56
Een voorbeeld van een datepicker met metabox en altField options
// DATE
array(
'name' => __( 'Datum 1', 'rwmb' ),
'id' => $prefix . 'datum1',
'type' => 'date',
// jQuery datetime picker options.
// For date options, see here http://api.jqueryui.com/datepicker
// For time options, see here http://trentrichardson.com/examples/timepicker/
'js_options' => array(
@cmeerbeek
cmeerbeek / functions.php
Last active January 2, 2016 13:59
Custom Post Type Archive Title Genesis Before Loop
/**
* Add custom title to genesis_before_loop for CPT Archive page in Genesis
*
* @author Coen Meerbeek
* @link http://www.bluefactory.nl
*/
function add_event_page_title() {
if ( is_post_type_archive( 'evenement' ) )
echo '<h1 class="archive-title">Event Archive Title</h1>';
};