Skip to content

Instantly share code, notes, and snippets.

Guillaume Subiron maethor

Block or report user

Report or block maethor

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
@maethor
maethor / example.ldap
Created Oct 8, 2013
Backupninja LDAP helper for Debian (without using slapd.conf)
View example.ldap
##
## configuration file for openldap backups
##
## Only support "slapcat" method.
## The LDIFs generated are suitable for use with slapadd.
## As the entries are in database order, not superior first order,
## they cannot be loaded with ldapadd without being reordered.
##
## backupdir (default /var/backups/ldap): the destination for the backups
@maethor
maethor / ldap.helper.in
Created Oct 8, 2013
Backupninja LDAP handler for Debian (without using slapd.conf)
View ldap.helper.in
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
HELPERS="$HELPERS ldap:ldap_database_backup"
ldap_create_file() {
while true; do
checkBox "ldap action wizard" "check options" \
"compress" "compress the ldif output files" yes
status=$?
@maethor
maethor / ldap.in
Created Oct 8, 2013
Backupninja LDAP handler for Debian (without using slapd.conf)
View ldap.in
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
#
# openldap backup handler script for backupninja
#
getconf backupdir /var/backups/ldap
getconf suffixes all
getconf compress yes
getconf ldif yes
@maethor
maethor / nagios.coffee
Created Oct 3, 2013
Nagios and Shinken hubot script
View nagios.coffee
# Description:
# This script receives pages in the formats
# /usr/bin/curl -d host="$HOSTALIAS$" -d output="$SERVICEOUTPUT$" -d description="$SERVICEDESC$" -d type=service -d state="$SERVICESTATE$" $CONTACTADDRESS1$
# /usr/bin/curl -d host="$HOSTNAME$" -d output="$HOSTOUTPUT$" -d type=host -d state="$HOSTSTATE$" $CONTACTADDRESS1$
#
# Author:
# maethor
# based on oremj (https://gist.github.com/oremj/3702073)
irc = require('irc')
@maethor
maethor / hubot-init
Last active Dec 24, 2015
hubot init script for Debian
View hubot-init
#!/bin/sh
### BEGIN INIT INFO
# Provides: hubot
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the hubot hubot service
# Description: starts the hubot bot for the Campfire rooms
You can’t perform that action at this time.