Skip to content

Instantly share code, notes, and snippets.

@Pitastic
Pitastic / docker-compose-backup.sh
Last active February 13, 2024 13:47
Dynamic Backup Script for docker-composes
#/bin/bash
set -e
SCRIPT_PATH="`dirname \"$0\"`"
cd $SCRIPT_PATH
if [[ -z $1 ]]; then
echo "No target path for backup file provided."
@Pitastic
Pitastic / SqliteDB_Handler.py
Created May 22, 2023 19:17
SQLite Handler (ursprünglich für Kontoumsätze) der größtenteils allgemeingültig ist.
#!/usr/bin/python3 # pylint: disable=invalid-name
"""Datenbankhandler für die Interaktion mit einer SQLite Datenbankdatei."""
import sqlite3
import json
class SQLiteHandler():
"""
@Pitastic
Pitastic / Readme.md
Last active January 8, 2023 20:02
Build Influx > v2.0 and Grafana v9 under FreeBSD (tested on 13.1)

Thanks to this issue and @phaethon . I just split up the commands into two seperated scripts and bumped the Influx version.

gmake test will return errors about InfluxQL tests. I don't know how bad this is...

Install Command

chmod a+x requirements.sh
chmod a+x install.sh
./requirements.sh && ./install.sh
@Pitastic
Pitastic / history
Last active October 31, 2022 17:04
Install PicApport under FreeBSD 12.3 (TrueNAS Jail)
# 1. Create a new Basejail
# 2. Network: Setup a network config for this jail (internet needed)
# 3. Jail Properties: allow_mount (devfs, procfs, tmpfs) <- not sure if really needed !
# 4. Copy `picapport_service` to `/etc/rc.d/picapport` (in the Jail)
# 5. Install JDK (https://openjdk.org) and wget (for downloads)
pkg install wget java/openjdk11-jre
@Pitastic
Pitastic / Dockerfile
Last active November 19, 2023 21:16
Dockerfile for a simple PicApport Container with a little Starter
# Dockerfile for a simple PicApport Container
# Update: Just put a new picapport-headless.jar next to this file and rebuild.
FROM debian:buster
ENV PICAPPORT_PORT 80
ENV PICAPPORT_LANG de
ENV PICAPPORT_LOG WARNING
ENV XMS 512m
ENV XMX 1024m
Duck, Dagobert
Gans, Gustav
Maus, Micky
Kolumna, Karla
Blümchen, Benjamin
Glück, Hans
Salzig, Susi
Einfall, Emil
Schüler, Stefan
Müller, Martha