Skip to content

Instantly share code, notes, and snippets.

Avatar

Reiner Keller Reiner030

  • Berlin, Germany
View GitHub Profile
@Reiner030
Reiner030 / GeoIP-for-iptables-update.sh
Created Apr 26, 2019
Improved combined script of https://github.com/mschmitt/GeoLite2xtables for updating Lite and commercial GeoIP2 databases
View GeoIP-for-iptables-update.sh
#/bin/bash
# Lite Access:
# AccountID 0
# LicenseKey 000000000000
# EditionIDs GeoLite2-Country GeoLite2-City
# Licensed Access:
# AccountID 12345
# LicenseKey abcdefghijkl
View wp-cli update script as etc-cron.daily-wordpress-update
cat /etc/cron.daily/wordpress
#!/bin/sh
set -e
WWW_USER="www-data"
WWW_PATH="/var/www"
WPCLI_UPDATE=`wp cli check-update --allow-root 2>/dev/null \
| grep -v "Success: WP-CLI is at the latest version." | wc -l`
@Reiner030
Reiner030 / Vagrantfile
Last active Aug 29, 2015
Virtualbox + Vagrant Test Setup for ReaR
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
## to use this Vagrantfile you need:
## Virtualbox: http://www.virtualbox.org
## Vagrant: http://www.vagrantup.com
## and if you need cleanup scripts for e.g. additional external destroy
## functionality ( https://github.com/emyl/vagrant-triggers ) run:
# vagrant plugin install vagrant-triggers
@Reiner030
Reiner030 / strace-output working-rear-duply-test
Created Oct 14, 2014
running duply rear-test status => sorted output
View strace-output working-rear-duply-test
RESCUE puppet-optimus:~ # sed -e 's/^.*open("\([^"]*\)".*/\1/' strace-working.out | sort -u
/bin/duplicity
/bin/duply
/bin/which
/dev/null
/dev/tty
/dev/urandom
/etc/duply/rear-test/.
/etc/duply/rear-test/conf
/etc/group
@Reiner030
Reiner030 / strace-output rear-duply-test
Last active Aug 29, 2015
strace -Ff -e open duply rear-test status 2>&1 |grep -v '= -1'|grep -i open|grep -v "open resumed" > strace.out
View strace-output rear-duply-test
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY) = 3
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK) = 3
open("/proc/meminfo", O_RDONLY) = 3
open("/bin/duply", O_RDONLY) = 3
[pid 2396] open("/etc/ld.so.cache", O_RDONLY) = 3
You can’t perform that action at this time.