Skip to content

Instantly share code, notes, and snippets.

View Thermi's full-sized avatar

Thermi Thermi

  • Switzerland
View GitHub Profile
@Thermi
Thermi / acme.service
Last active June 21, 2021 18:52
systemd service and timer unit
[Unit]
Description = update Let's Encrypt certificates
[Service]
ExecStart=/usr/bin/acmetool --batch reconcile
ExecStartPost=/usr/bin/systemctl reload nginx
ExecStartPost=/usr/bin/cp /var/lib/acme/live/thermi.strangled.net/haproxy /var/lib/znc/.znc/certs/znc_whole_chain.pem
ExecStartPost=/usr/bin/chown znc:znc /var/lib/znc/.znc/certs/znc_whole_chain.pem
ExecStartPost=/usr/bin/chmod 600 /var/lib/znc/.znc/certs/znc_whole_chain.pem
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 8, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled).[49/2466]
last defined value only.
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 39, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled). Using
last defined value only.
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 56, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled). Using
last defined value only.
[WARNING]: While constructing a mapping from /home/thermi/UNITS/Rimoto/ansible/es-cluster.yml, line 86, column 16, found a duplicate dict key (discovery.zen.ping.multicast.enabled). Using
@Thermi
Thermi / es-cluster.yml
Created October 3, 2016 19:44
ansible playbook
# https://docs.ansible.com/ansible/playbooks_best_practices.html#content-organization
# https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/index.html
# https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/cloud-aws-best-practices.html
# https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/cloud-aws-testing.html
- hosts: master_nodes
roles:
- centos7-setup
- { role: elasticsearch, es_instance_name: "cluster-master-1", es_heap_size: "1g",
es_config: {
cluster.name: "monitoring-cluster",
@Thermi
Thermi / PKGBUILD
Created October 4, 2016 23:16
An improved version of the ansible-git PKGBUILD on the AUR
# Maintainer: Paul Nicholson <brenix@gmail.com>
# Contributor: Michel Blanc <mblanc@erasme.org>
# Contributor: Scott Hansen https://github.com/firecat53
# Contributor: Buce <dmbuce@gmail.com>
# Contributor: Bartłomiej Piotrowski <b@bpiotrowski.pl>
# Contributor: cgtx <carl@carlgeorge.us>
# Contributor: Daniel Wallace <danielwallace@gtmanfred.com>
# Contributor: John Gosset <john.gosset@gmail.com>
# Contributor: Joshua Lund <josh@joshlund.com>
# Contributor: Matt Klich <matt.klich@readytalk.com>
@Thermi
Thermi / PKGBUILD
Created April 25, 2017 07:00
Current working status of the PKGBUILD for ocfs2-tools 1.8.5
# Maintainer: Thermi <noel at familie-kuntze dot de>
pkgname=ocfs2-tools
pkgver=1.8.5
pkgrel=1
pkgdesc="ocfs2 tool chain by Oracle, including mkfs, tunefs, fsck, debugfs and utilities for ocfs2"
arch=('x86_64' 'i686')
url="https://github.com/markfasheh/ocfs2-tools/"
license=('GPL2')
optdepends=('pacemaker' 'corosync')
@Thermi
Thermi / main.cf
Last active May 20, 2017 20:49 — forked from kitikonti/main.cf
# Only bind to 127.0.0.1 and ::1 so local SMTP clients (msmtp) can connect to it
inet_interfaces = localhost
# Use IPv4 and IPv6
inet_protocols = all
myorigin = $myhostname
smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
From c694a83d871855bf8e26bcb6f7b3d85503753ca9 Mon Sep 17 00:00:00 2001
From: Noel Kuntze <noel@familie-kuntze.de>
Date: Mon, 19 Jun 2017 17:30:56 +0200
Subject: [PATCH] Fix compiler warnings in usl_timer.c
---
usl/usl_timer.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/usl/usl_timer.c b/usl/usl_timer.c
#! /bin/bash
ip neigh | while read -r i
do
if [ `echo "$i" | cut -d " " -f 5` == FAILED ]
then
ip neigh replace `echo "$i" | cut -d " " -f 1-3` nud none
fi
done
From eefac5786d01f1c3c4660cb218eb380eb19894a7 Mon Sep 17 00:00:00 2001
From: Noel Kuntze <noel@familie-kuntze.de>
Date: Fri, 21 Jul 2017 16:39:50 +0200
Subject: [PATCH] Fix implicit fallthrough in src/options.c
---
pax-3.4/src/options.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pax-3.4/src/options.c b/pax-3.4/src/options.c
@Thermi
Thermi / README.md
Last active October 23, 2020 01:29

A quick run down on iptables rules

What is it?

iptables is a cli frontend to netfilter, the Linux kernel firewall/nat implementation for OSI layer 3 and 4.

Okay, give me more details

  • When you run "iptables", the actual file being executed is "xtables-multi". That is, because the file name "iptables" is symlinked to "xtables-multi".