Skip to content

Instantly share code, notes, and snippets.

Moritz Bellach flat235

Block or report user

Report or block flat235

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
@flat235
flat235 / elastic-rolling-upgrade.sh
Created Mar 19, 2019
rolling upgrade of elasticsearch (debian edition)
View elastic-rolling-upgrade.sh
#!/bin/bash
# written according to
# https://www.elastic.co/guide/en/elasticsearch/reference/5.6/rolling-upgrades.html
# NO PLUGIN SUPPORT
# Dependencies
# - curl
# - jq
View keybase.md

Keybase proof

I hereby claim:

  • I am flat235 on github.
  • I am flat235 (https://keybase.io/flat235) on keybase.
  • I have a public key ASDLguCt6z3iNJQHnnRVONUGgpMiKJwB0k8T2UFl5LtMDgo

To claim this, I am signing this object:

@flat235
flat235 / diymda.pl
Last active Feb 10, 2017
diy mail delivery agent (especially for catch-all scenarios)
View diymda.pl
#!/usr/bin/perl
# assumed folderlayout: somwhere/domain/user
# configure the 'somewhere' in $basedir
# you may also configure the spamdir
#
# this will filter mail in the following way:
# 1. messages marked as spam by spamassassin will be put into the spam subfolder
@flat235
flat235 / spamassassin-update.sh
Last active Feb 10, 2017
Update spamassassin rules, bayes learning. Script for nightly cronjob.
View spamassassin-update.sh
#!/bin/bash
# where are the maildirs?
MAILROOT=/var/vmail/
DELETEDDIRS='deleted-maildirs'
SPAMDIRS='Spam'
# update rules
sa-update --allowplugins
# compile rules (for speed)
sa-compile --quiet
@flat235
flat235 / gld.service
Created Feb 5, 2017
Systemd Unit for GreyListing Daemon
View gld.service
[Unit]
Description=GreyListing Daemon for postfix
[Service]
Type=forking
ExecStart=/usr/bin/gld
[Install]
RequiredBy=postfix.service
@flat235
flat235 / update-debian-mirror.sh
Created Dec 17, 2016
make/update a debian mirror
View update-debian-mirror.sh
#!/bin/bash
# configuration
MIRROR='ftp.de.debian.org'
ARCH='i386,amd64'
SECTIONS='main,contrib,non-free,main/debian-installer'
RELEASE='jessie'
You can’t perform that action at this time.