Skip to content

Instantly share code, notes, and snippets.


Marc Falzon falzm

Block or report user

Report or block falzm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View collectd.clj
; Expire old events from the index every 5 seconds.
(periodically-expire 600)
(def graph (graphite {:host ""}))
; Keep events in the index for 5 minutes by default.
(let [index (default :ttl 300 (update-index (index)))]
; Inbound events will be passed to these streams:
falzm / sorted_json.rb
Last active Nov 22, 2016 — forked from halkeye/sorted_json.rb
Puppet parser function for outputting JSON-formatted objects, in a sorted consistent way.
View sorted_json.rb
require 'json'
def sorted_json(obj)
case obj
when String, Fixnum, Float, TrueClass, FalseClass, NilClass
return obj.to_json
when Array
arrayRet = []
obj.each do |a|
You can’t perform that action at this time.