This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 WARNING ; 2 CRITICAL | |
apt_repository_severity = { | |
'Debian-Security' : 2, | |
'debian-volatile' : 1, | |
'Unofficial' : 1 | |
} | |
apt_cache_max_age = 3600 | |
def inventory_apt(checkname, info): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -e /etc/debian_version && `which apt-get` ]] &>/dev/null ; then | |
cache_time_ref=/var/cache/apt/pkgcache.bin | |
delta=0 | |
# Only try to manually update the cache, if cron-apt is not installed. | |
if [[ `dpkg-query -W -f='${Status}\n' cron-apt` != "install ok installed" ]] &>/dev/null ; then | |
now=`date +%s` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* (c) 2012, Stefan Schlesinger - http://sts.ono.at | |
* | |
* My first version of a Javascript Levenshtein distance implementation. | |
* http://en.wikipedia.org/wiki/Levenshtein_distance | |
*/ | |
function unpack(str) { | |
var bytes = []; | |
for(var i = 0; i < str.length; i++) { | |
var char = str.charCodeAt(i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'base64' | |
require 'RMagick' | |
include Magick | |
module Imager | |
class << self | |
def registered(app) | |
app.send :include, InstanceMethods | |
app.ready do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Library/WebServer/Documents/munki -> /Library/WebServer/Documents/munki-releases/distribution-20130423195006 | |
/Library/WebServer/Documents/munki-releases | |
/Library/WebServer/Documents/munki-releases/distribution-20130423195006/catalogs | |
/Library/WebServer/Documents/munki-releases/distribution-20130423195006/catalogs/all | |
/Library/WebServer/Documents/munki-releases/distribution-20130423195006/catalogs/testing | |
/Library/WebServer/Documents/munki-releases/distribution-20130423195006/manifests | |
/Library/WebServer/Documents/munki-releases/distribution-20130423195006/pkgs | |
/Library/WebServer/Documents/munki-releases/distribution-20130423195006/pkgs/jenkins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class apt { | |
include apt::update | |
anchor { 'apt::update': | |
require => Class['apt::update'] | |
} | |
} | |
class apt::update { | |
exec { 'aptitude_update': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ipxe | |
chain http://boot.ono.at/ipxe?uuid=\${uuid}&mac=\${mac}&busid=\${busid}&ip=\${ip}&hostname=\${hostname:uristring}&serial=\${serial:uristring}&asset=\${asset:uristring}&manufacturer=\${manufacturer:uristring}&product=\${product:uristring} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Definition: checkmk::plugin | |
# | |
# Install a check_mk agent plugin on machine into the directroy: | |
# /usr/lib/check-mk-agent/plugins/ | |
# | |
# Usage: | |
# | |
# The following will source the check-mk-agent plugin called 'puppet' from the | |
# puppet module puppet: puppet:///modules/puppet/checkmk/agent.plugin | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# MK's Remote Plugin Executor NG ;-) | |
# | |
# Workaround for check_mks inability to use scripts from a mrpe.d directory | |
# http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-February/008646.html | |
# | |
# Make sure mrpe.cfg doesn't exist, or you will end up with two <<<mrpe>>> | |
# output sections. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my @autoreplyDomains = qw( | |
example.com | |
); | |
my $transactionType = $self->TransactionObj->Type; | |
my $transactionContent = $self->TransactionOnj->Message->First; | |
my $ticketRequestor = lc($self->TicketObj->RequestorAddresses); | |
if ($transactionType eq 'Create' && $transactionContent) { |
OlderNewer