Skip to content

Instantly share code, notes, and snippets.

@m3rlinux
m3rlinux / omd-tuning.sh
Last active March 6, 2024 11:26 — forked from FlorianHeigl/omd-tuning.sh
omd tuning script
#!/usr/bin/env bash
# License: BSD
# Author: Florian Heigl (@FlorianHeigl)
# Contributors: Davide Gibilisco (@m3rlinux)
set -eu
# Function to convert bytes to human-readable format
human_readable() {
@m3rlinux
m3rlinux / simple-rrd-merge.py
Last active January 17, 2023 12:47 — forked from arantius/simple-rrd-merge.py
add support for python3
#!/usr/bin/env python
"""Simple script to merge multiple RRD files together.
Accepts any number of RRD file names as arguments. Produces an "rrdtool dump"
style file on stdout. The last RRD file should have a slot for every possible
record in the resulting merged RRD.
Run something like:
$ python simple-merge-rrd.py filea.rrd fileb.rrd filec.rrd | \