Skip to content

Instantly share code, notes, and snippets.

@jensb
jensb / influx-editor.sh
Last active January 29, 2023 11:40
InfluxDB measurement export-edit-reimport hack
#!/bin/bash
#
# Perform Influx v2 query with correct headers as CSV, open editor for changes, and write back to InfluxDB.
#
# Usage: influx-edit.sh <Org/Bucket> <flux_measurement> <from> <to>
# Prerequisites: Need to put login data (host, Org, token) into $HOME/.influxdbv2/configs file.
#
# Author: Jens Benecke <jens-github@spamfreemail.de>, 2022.
# Published as public domain, as far as legally possible.
#!/bin/bash
#
# Compare two PDF files.
# Dependencies:
# - pdfinfo (xpdf)
# - pdfjam (texlive-extra-utils)
# - diffpdf
#
MAX_HEIGHT=15840 #The maximum height of a page (in points), limited by pdfjam.