Skip to content

Instantly share code, notes, and snippets.

View NanneHuiges's full-sized avatar

Nanne Huiges NanneHuiges

  • Groningen, the Netherlands
View GitHub Profile
@NanneHuiges
NanneHuiges / firefly-recovery.sh
Created December 11, 2018 11:46
firefly-iii recovery script
#!/bin/bash
#
# author: Nanne Huiges ([email protected])
INSTALL_DIR="/home/pi/firefly"
BACKUP_DIR="/home/pi/backups/latest"
COMPOSE="/usr/local/bin/docker-compose"
# verbose: shows commands for debugging
set -x
@NanneHuiges
NanneHuiges / firefly-backup.sh
Created December 11, 2018 11:44
firefly-iii backup script
#!/bin/bash
#
# author: Nanne Huiges ([email protected])
# verbose: shows commands for debugging
set -x
INSTALL_DIR="/home/pi/firefly"
BACKUP_DIR="/home/pi/backups"
COMPOSE="/usr/local/bin/docker-compose"
@NanneHuiges
NanneHuiges / install_and_backup_firefly.md
Last active November 17, 2020 16:54
Firefly-iii docker on raspberry with backups

Installing firefly on a raspberry with backups

Installing firefly on a raspberry can be done with a LAMP stack, but to have less configuration to worry about, I use docker. This is a bit tricker than 'normal', as raspberry uses the ARM architecture. Luckily, most official images are ready for this. We do need to install docker and docker-compose.

The OS I was running when writing this was Raspbian Stretch Lite (Version:November 2018)

Installing docker and docker-compose

Docker

This is the easy part. Long story short: I'm a trusting fellow and I use the installscript provided by docker:

curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh

@NanneHuiges
NanneHuiges / Controller.java
Created June 1, 2017 06:29
Piters versie van de Controller, waar de default-loop logica uitgecomment is
/*
* Copyright (C) 2017 Ordina
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software