Skip to content

Instantly share code, notes, and snippets.

Matt Marshall gardenmwm

Block or report user

Report or block gardenmwm

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
gardenmwm / check_redisqueue
Created Jul 16, 2015
Quick script for checking size of a redis queue
View check_redisqueue
# nagios plugin check_redisqueue
# check size of redis queue, doesn't use option flags, so
# check_redisqueue <queuename> <warn> <crit>
# If you don't want graphite set below to 0
#command vars
View gist:220f5fa3a1410b543937
142 func grokline(match grok.Match) map[string][]string {
143 fields := make(map[string][]string)
144 defer func() {
145 if e:= recover(); e!= nil {
146 fmt.Println("Recovering",e)
147 }
148 }()
149 panic("Panicing")
150 match.Captures()
151 return fields
View gist:1a0218e050486cdf41ba
# This is currently a noop but will be supported in the future.
forge ''
mod 'roles',
:git => 'git@lnx-gitlab.adeq.lcl:puppet-modules/roles.git'
mod 'profiles',
:git => 'git@lnx-gitlab.adeq.lcl:puppet-modules/profiles.git'
View gist:4457150
import sys
for line in sys.stdin:
if len(record) < 2 and line != '\n':
elif len(record) == 2:
print record
You can’t perform that action at this time.