Skip to content

Instantly share code, notes, and snippets.

View ErikFontanel's full-sized avatar

Erik Gelderblom ErikFontanel

View GitHub Profile
ErikFontanel /
Created November 24, 2018 14:44
Fysetc F6 v1.3 configuration

Fysetc F6 v1.3 for

Instructions for compiling Marlin for the Fysetc F6 using and VSCode or Atom.

Add a new custom board to

  1. Add fysetcf6_13.json to the platformio boards directory ~/.platformio/boards in your home folder.
ErikFontanel / docker.zsh
Created August 31, 2018 12:40
Start docker daemon if it's not already when docker-compose up is ran
View docker.zsh
# spinner
# @see
spin() {
printf "\b${sp:sc++:1}"
((sc==${#sp})) && sc=0
ErikFontanel /
Last active July 31, 2018 13:08
Block Google DNS on R7800
# Use together with Voxel Firmware
# Symlink this file from optware root to /root/
# Make script executable with chmod +x
# More info:
iptables -t nat -I PREROUTING -i br0 ! -s -p tcp --dport 53 -j DNAT --to
iptables -t nat -I PREROUTING -i br0 ! -s -p udp --dport 53 -j DNAT --to
ErikFontanel /
Last active September 5, 2021 14:20
Firefly backup and restore scripts


This script automatically creates a tar.gz archive of the firefly database and copies it to a secure offsite location.

It does NOT save the encryption key. Store that somewhere else securely (e.g. password manager).

I have firefly-backup running via a daily cronjob.


This restores a .tar.gz backup of the firefly database to a docker volume. The script takes the filename of the backup as an argument and assumes a static location where those files are found.

ErikFontanel /
Last active November 28, 2023 18:55
Pi-hole Youtube ad blocking
# This script will fetch the Googlevideo ad domains and append them to the Pi-hole block list.
# Run this script daily with a cron job (don't forget to chmod +x)
# More info here:
# File to store the YT ad domains
# Fetch the list of domains, remove the ip's and save them
curl '' \
ErikFontanel / apfd.conf
Last active January 4, 2020 16:55
Time Capsule on optware
View apfd.conf
; Netatalk 3.x configuration file
; Global server settings
; Inspiration and background:
; create group tmusers, add users
ErikFontanel /
Last active July 12, 2023 08:28
run jottacloud-command-line-tool on busybox/optware
  1. Install ca-bundle opkg update && opkg install ca-bundle if not already installed for https
  2. Download the binary from and untar in /opt/jotta-cli
  3. cd into the jotta-cli dir
  4. Modify source=/usr/share/jottad to source="/opt/usr/share/jottad" /in ./usr/share/jottad/
  5. run ./usr/share/jottad/ and ./usr/share/jottad/
  6. modify group=jottad to group=tmusers and add umask=0002 in /etc/init.d/jottad
  7. create the jottad data directory mkdir -p /opt/.jottad
  8. Start jottad with start-stop-daemon -b -x /opt/bin/jottad slow lowmem datadir /opt/.jottad -S (add this to /etc/rc.local to start automatically)
  9. Login jotta-cli login
ErikFontanel / karabiner.json
Last active October 20, 2017 17:41
Varmilo VA68 Mac keyboard layout. Sets the command, option and control keys in the right place. Changes insert to home too. Add this under 'Simple Modifcations' to you keyboard profile for your Varmilo keyboard in karabiner.json.
View karabiner.json
"simple_modifications": [
"from": {
"key_code": "insert"
"to": {
"key_code": "home"
ErikFontanel / TimberPatternLabLoader.php
Created July 28, 2017 14:07
Wordpress Timber Pattern Lab Pattern Loader
View TimberPatternLabLoader.php
* Custom PatternLab Loader for Timber
* How to use:
* Place this somewhere in your functions.php, make sure Timber WordPress plugin is installed and activated.
* This code assumes Pattern Lab is installed in the same directory as your theme.
* Change $patternlabSource below if you want to use a different path to Pattern Lab.
* This code hooks into Timber when Timber initialises the Twig_Loader_Filesystem
* uses default Timber loader if Pattern Lab patterns aren't found.
ErikFontanel /
Created December 13, 2016 16:28 — forked from zenorocha/
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description


TODO: Describe the installation process