Skip to content

Instantly share code, notes, and snippets.

View yrousse's full-sized avatar

Yann Rousse yrousse

View GitHub Profile

Keybase proof

I hereby claim:

  • I am yrousse on github.
  • I am yrousse (https://keybase.io/yrousse) on keybase.
  • I have a public key ASCRh4fajUV9FA_QGygWw_2sVoFbhtUhjUdnSA-pITVVOAo

To claim this, I am signing this object:

Verifying that "yrousse.id" is my Blockstack ID. https://onename.com/yrousse
@yrousse
yrousse / gentlepushover.pl
Created March 27, 2017 10:58
This script is meant to ping every 5 minutes some hosts and upon failure to respond, an appropriate alert will be sent via Pushover service
#!/usr/bin/perl
## Gentle Pushover script for CRON job
##
## This Perl script is meant to ping every 5 minutes a bunch of hosts
## and if some aren't responding, an appropriate alert will be sent via Pushover service
## https://pushover.net/
##
## Some behavior has been ironed out in order to check server status
## quietly but frequently while keeping Push alerts moderately intrusive and relevant.
@yrousse
yrousse / dovecot_log.conf
Last active February 3, 2016 20:45
IMAP logins/disconnects flooding logs (dovecot). A dirty solution...
# Stop login and disconnect entries being in log
# Must exist in /etc/rsyslog.d/
# Restart rsyslog service
:msg, regex, "imap-login.*Login" stop
:msg, regex, "imap.*Disconnected" stop
@yrousse
yrousse / update_blrules.sh
Created January 30, 2016 15:21
spamhaus and dshield drop lists to shorewall blrules simple script
#!/bin/sh
echo "#From dshield.org" > /tmp/blacklist
wget -q -O - http://feeds.dshield.org/block.txt | awk '/^[0-9]/ { print "DROP", "net:"$1"/24", "all"}' >> /tmp/blacklist
echo "#From spamhaus.org" >> /tmp/blacklist
wget -q -O - http://www.spamhaus.org/drop/drop.lasso | awk '/^[0-9]/ { print "DROP", "net:"$1, "all"}' >> /tmp/blacklist
mv /tmp/blacklist /etc/shorewall/blrules
shorewall refresh &>/dev/null
Verifying that +yrousse is my blockchain ID. https://onename.com/yrousse