Skip to content

Instantly share code, notes, and snippets.

View ronaldevers's full-sized avatar

Ronald Evers ronaldevers

View GitHub Profile
@ronaldevers
ronaldevers / gitlab-gc.sh
Created May 10, 2017 07:42 — forked from pbabics/gitlab-gc.sh
Manual garbage collector for gitlab registry, it removes old revisions that are not referenced by any tag
#!/bin/bash
BASE_PATH=/var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/v2/repositories
DRY_RUN=0
KEEP_LAST_IMAGES=10
RUN_GARBAGE_COLLECTOR=0
GITLAB_CTL_COMMAND=`which gitlab-ctl`
@ronaldevers
ronaldevers / nagios.coffee
Last active December 16, 2015 18:29 — forked from oremj/nagios.coffee
Hubot script to receive notifications from Nagios. Refactored using switch and better flow and uses a little less color compared to the original gist.
# 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:
# oremj
# ronaldevers
irc = require('irc')