View xip-io.py
This file contains 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
#!/usr/bin/python3 | |
import ipaddress | |
import sys | |
# SO one :) | |
def base36encode(number): | |
""" |
View Dockerfile
This file contains 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
FROM opensuse:42.1 | |
MAINTAINER Boris Manojlovic "boris@steki.net" | |
ENV LANG en_US.UTF-8 | |
ENV LANGUAGE en_US.UTF-8 | |
ENV TERM xterm | |
RUN zypper -n --gpg-auto-import-keys ref \ | |
&& zypper ar http://download.opensuse.org/repositories/server:/monitoring:/zabbix/openSUSE_Leap_42.1/ zabbix \ |
View le-renew.sh
This file contains 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 | |
#================================================================ | |
# Let's Encrypt renewal script for Apache on Ubuntu/Debian | |
# @author Erika Heidi<erika@do.co> | |
# Usage: ./le-renew.sh [base-domain-name] | |
# More info: http://do.co/1mbVihI | |
#================================================================ | |
domain=$1 | |
le_path='/opt/letsencrypt' | |
le_conf='/etc/letsencrypt' |
View pygraylog2
This file contains 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
#!/usr/bin/env python | |
import logging | |
import requests | |
import json | |
from pprint import pprint | |
session = requests.Session() | |
session.headers.update({'User-Agent': 'python/gl2syslog', 'Accept': 'application/json'}) |
View gist:202245a4c7036614e553
This file contains 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
import org.graylog2.plugin.Message | |
rule "Drop vmware guest crap" | |
when | |
m : Message( getField("full_message") matches "\\[ warning\\] \\[vmusr:vmusr\\] Error in the RPC receive loop: RpcIn(.|\r|\n)*" ); | |
then | |
m.setFilterOut(true); | |
#System.out.println( "[DROOL] : " + m.toString() ); # too verbose crap... | |
end |
View graylog2-apache.conf
This file contains 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
<VirtualHost _default_:80> | |
ServerName graylog.company.com | |
Redirect permanent / https://graylog.company.com/ | |
</VirtualHost> | |
## | |
## SSL Virtual Host Context | |
## | |
<IfDefine SSL> | |
<IfDefine !NOSSL> |
View server.drl
This file contains 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
import org.graylog2.plugin.Message | |
rule "Drop vmware guest crap" | |
when | |
m : Message( getField("message") matches "\\[ warning\\] \\[vmusr:vmusr\\] Error in the RPC receive loop: RpcIn.*" ); | |
then | |
m.setFilterOut(true); | |
#System.out.println( "[DROOL] : " + m.toString() ); # too verbose crap... | |
end |
View runme.zm
This file contains 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/sh -x | |
export PATH=$PATH:phantomjs-?.?.?-linux-x86_64/bin | |
./zm.py |
View 002-freebsd_fix_sendfile.patch
This file contains 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
diff --git a/ac_check_sendfile.m4 b/ac_check_sendfile.m4 | |
new file mode 100644 | |
index 0000000..f2aac5a | |
--- /dev/null | |
+++ b/ac_check_sendfile.m4 | |
@@ -0,0 +1,63 @@ | |
+AC_DEFUN([AC_CHECK_SENDFILE],[ | |
+AC_MSG_CHECKING([whether sendfile() is supported and what prototype it has]) | |
+ | |
+saved_CFLAGS="$CFLAGS" |