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 | |
# Set up a default search path | |
PATH="/usr/bin:/bin" | |
CURL=`which curl` | |
if [ -z "$CURL" ]; then | |
echo "curl not found" | |
exit 1 | |
fi |
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
--- /etc/rsyslog.conf 2019-10-18 15:48:29.000000000 +0000 | |
+++ /root/rsyslog.docker.centos7.conf 2020-03-12 10:47:58.365192000 +0000 | |
@@ -4,10 +4,13 @@ | |
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html | |
#### MODULES #### | |
+module(load="imuxsock") | |
+module(load="omstdout") | |
+*.* :omstdout: |
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 lxml import html | |
import requests | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('company', help='company name') | |
args = parser.parse_args() | |
company=args.company | |
page = requests.get("https://lei.info/fullsearch?for={}".format(company)) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby et sw=2 ts=2 ai : | |
Vagrant.configure("2") do |config| | |
GL_MEM_MBytes = 1024 | |
ESD_MEM_MBytes = 2048 | |
ESM_MEM_MBytes = 2048 | |
ES_NODE_COUNT=2 | |
ESM_NODE_COUNT=2 | |
config.vm.box = "bento/centos-7" |
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 python3 | |
# Simple downloader for RPMs from Graylog repository | |
from html.parser import HTMLParser | |
from urllib.request import urlopen,urlretrieve | |
from os.path import isfile,isdir | |
from re import compile | |
import argparse | |
from sys import exit | |
from subprocess import call |
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
# Syslog stuff | |
COMPONENT ([\w._\/%-]+) | |
COMPID postfix\/(%{DATA:instance}\/)?%{COMPONENT:component}(?:\[%{NUMBER:pid}\])? | |
POSTFIX (?:%{SYSLOGFACILITY} )?%{SYSLOGHOST:logsource} %{COMPID}: | |
# Milter | |
HELO (?:\[%{IP:helo}\]|%{HOST:helo}|%{DATA:helo}) | |
MILTERCONNECT %{QUEUEID:qid}: milter-reject: CONNECT from %{RELAY:relay}: %{GREEDYDATA:milter_reason}; proto=%{WORD:proto} | |
MILTERUNKNOWN %{QUEUEID:qid}: milter-reject: UNKNOWN from %{RELAY:relay}: %{GREEDYDATA:milter_reason}; proto=%{WORD:proto} |