Skip to content

Instantly share code, notes, and snippets.

@dawid-czarnecki
dawid-czarnecki / firefly-iii-backuper.sh
Last active November 16, 2024 12:13
Script to backup Firefly III database, uploads and config files installed with docker-compose
#!/bin/bash
files_to_backup=(.*.env .env docker-compose.yml )
info() { echo -e "\\033[1;36m[INFO]\\033[0m \\033[36m$*\\033[0m" >&2; }
warn() { echo -e "\\033[1;33m[WARNING]\\033[0m \\033[33m$*\\033[0m" >&2; }
fatal() { echo -e "\\033[1;31m[FATAL]\\033[0m \\033[31m$*\\033[0m" >&2; exit 1; }
intro () {
echo " ====================================================="
@dawid-czarnecki
dawid-czarnecki / procyon-war-wrapper.py
Created May 8, 2020 16:04
Simple tool to automate decompilation of war files using Procyon
#!/usr/bin/python3
import os
import sys
import uuid
from shutil import rmtree
from subprocess import Popen, PIPE
def usage(program):