Skip to content

Instantly share code, notes, and snippets.

Farhad Shahbazi Grauwolf

  • Vienna
Block or report user

Report or block Grauwolf

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
@Grauwolf
Grauwolf / get_alexa_1m_mx_rrs
Last active Aug 29, 2015 — forked from azet/get_alexa_1m_mx_rrs
Retrieves MX and A records for the 'Alexa Top 1 Million' list and prints them as nicely formatted JSON objects to stdout.
View get_alexa_1m_mx_rrs
#!/usr/bin/env bash
#
# Retrieves MX and A records for the 'Alexa Top 1 Million' list
# and prints them as nicely formatted JSON objects to stdout.
#
# Authors: Aaron Zauner <azet@azet.org>
# License: CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0)
#
set -e
View rm-corrupt.sh
#!/bin/bash
directory='/var/lib/graphite/whisper'
for file in $(find $directory -type f -name '*.wsp' -print); do
whisper-info $file > /dev/null 2>&1
[ $? -ne 0 ] && rm -v $file
done
@Grauwolf
Grauwolf / mrped
Last active Jan 2, 2016 — forked from sts/mrped
View mrped
#!/usr/bin/env zsh
# 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.
#
You can’t perform that action at this time.