View duply.conf
# Duply configuration I use to backup my ownCloud server to PCextreme's Aurora Mammoth: https://www.pcextreme.com/aurora/mammoth
#
# Uses SSH/SFTP to store data
#
# Yes, I disabled GPG on purpose
#
# File: /root/.duply/owncloud/conf
#
GPG_KEY='disabled'
TARGET='rsync://XXXXXXXX@store01.ams01.auroramammoth.eu/owncloud'
View fizzbuzz.py
#!/usr/bin/env python3
for i in range(1, 100 + 1):
buf = str()
if (i % 3) == 0:
buf += "Fizz"
if (i % 5) == 0:
buf += "Buzz"
View ceph-osd-mkpart-journal.sh
#!/bin/bash
set -e
#
# Create Ceph FileStore OSD Journal partitions on a SSD
#
# Afterwards set the UUID type of the journal right so that
# udev chowns the Journal to ceph:ceph
#
# Author: Wido den Hollander <wido@42on.com>
#
View ceph-mon-bootstrap.sh
#!/bin/bash
#
# Quickly bootstrap a Ceph Monitor
#
# Source: http://docs.ceph.com/docs/master/dev/mon-bootstrap/
#
# Tested with Ceph Luminous
apt-get install -y ceph
ceph-authtool --create-keyring /etc/ceph/mon.keyring --gen-key -n mon.
View acs-build-multi-deb.sh
#!/bin/bash
set -e
VERSION=$1
URL="http://www-eu.apache.org/dist/cloudstack/releases/${VERSION}/apache-cloudstack-${VERSION}-src.tar.bz2"
FILE="apache-cloudstack-${VERSION}-src.tar.bz2"
cd /tmp
View mariadb-user-stats-to-influx.py
#!/usr/bin/env python
"""
Author: Wido den Hollander <wido@pcextreme.nl>
Resources:
- https://mariadb.com/kb/en/library/user-statistics/
- http://influxdb-python.readthedocs.io/en/latest/
"""
View ceph-rados-latency.py
#!/usr/bin/env python
'''
This script writes X MegaByte random data to a number RADOS objects and reads the data again afterwards
It sends these statistics towards a InfluxDB so you can plot the latency of your Ceph cluster
Author: Wido den Hollander <wido@widodh.nl>
'''
View create-win10-usb.sh
#!/bin/bash
#
# Create Windows 10 USB under Ubuntu 16.04
# You might need to adjust some paths
#
DEV=sda
fdisk /dev/$DEV
View docker-ipv6-nat.sh
#!/bin/sh
#
# ONLY USE IPV6 NAT FOR TESTING PURPOSES
#
# IPV6 IN PRODUCTION SHOULD RUN WITHOUT NAT!
#
ip6tables -t nat -A POSTROUTING -s fd00::/64 -j MASQUERADE
dockerd --ipv6 --fixed-cidr-v6=fd00::/64
View rbd-iscsi-tgt.conf
<target iqn.2015.01.rbd.example.com:iscsi>
driver iscsi
bs-type rbd
readonly true
backing-store rbd/rbdimage1
initiator-address 192.168.72.50
initiator-address 192.168.72.51
initiator-address 192.168.72.52
initiator-address 192.168.79.60
initiator-address 192.168.79.61