Skip to content

Instantly share code, notes, and snippets.

Avatar

Thermi Thermi

View GitHub Profile
View ansible fail
[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
View es-cluster.yml
# 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 Oct 4, 2016
An improved version of the ansible-git PKGBUILD on the AUR
View PKGBUILD
# 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 Apr 25, 2017
Current working status of the PKGBUILD for ocfs2-tools 1.8.5
View PKGBUILD
# 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')
View 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
View 0001-Fix-compiler-warnings-in-usl_timer.c.patch
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
View replace_neigh_failed.sh
#! /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
View 008-Fix-implicit-fallthrough-in-src-options.c
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
View lab2_alt2.py
#! /bin/python3 -B
from fractions import Fraction
import pprint
class inputCase:
deltaX = 0
recursor = None
def __init__(self, deltaX, recursor):
self.deltaX = deltaX
View 0001-Fix-issue-with-the-creation-of-dummy-fips.h-header.patch
From a7fe5e35025227e348eaef5a15fd55f591d77206 Mon Sep 17 00:00:00 2001
From: John Safranek <john@wolfssl.com>
Date: Tue, 6 Mar 2018 13:15:35 -0800
Subject: [PATCH] Fix issue with the creation of dummy fips.h header.
---
wolfssl/wolfcrypt/include.am | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/wolfssl/wolfcrypt/include.am b/wolfssl/wolfcrypt/include.am