Instructions for compiling Marlin for the Fysetc F6 using Platform.io and VSCode or Atom.
- Add
fysetcf6_13.json
to the platformio boards directory~/.platformio/boards
in your home folder.
Instructions for compiling Marlin for the Fysetc F6 using Platform.io and VSCode or Atom.
fysetcf6_13.json
to the
platformio boards directory ~/.platformio/boards
in your home folder.#!/bin/bash | |
# spinner | |
# @see https://stackoverflow.com/questions/238073/how-to-add-a-progress-bar-to-a-shell-script | |
sp="/-\|" | |
sc=0 | |
spin() { | |
printf "\b${sp:sc++:1}" | |
((sc==${#sp})) && sc=0 | |
} |
#!/bin/sh | |
# Use together with Voxel Firmware | |
# Symlink this file from optware root to /root/firewall-start.sh | |
# Make script executable with chmod +x | |
# | |
# More info: https://www.reddit.com/r/pihole/comments/930g2z/psa_google_services_including_ads_and_others_try/ | |
iptables -t nat -I PREROUTING -i br0 ! -s 192.168.1.13 -p tcp --dport 53 -j DNAT --to 192.168.1.13 | |
iptables -t nat -I PREROUTING -i br0 ! -s 192.168.1.13 -p udp --dport 53 -j DNAT --to 192.168.1.13 |
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.
#!/bin/sh | |
# 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: https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253/136 | |
# File to store the YT ad domains | |
FILE=/etc/pihole/youtube.hosts | |
# Fetch the list of domains, remove the ip's and save them | |
curl 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com' \ |
; | |
; Netatalk 3.x configuration file | |
; | |
[Global] | |
; Global server settings | |
; Inspiration and background: | |
; http://blog.khubla.com/freebsd/time-machine-backups-using-freebsd-zfs | |
; | |
; create group tmusers, add users |
opkg update && opkg install ca-bundle
if not already installed for https/opt/jotta-cli
jotta-cli
dirsource=/usr/share/jottad
to source="/opt/usr/share/jottad"
/in ./usr/share/jottad/install.sh
./usr/share/jottad/install.sh
and ./usr/share/jottad/install-path.sh
group=jottad
to group=tmusers
and add umask=0002
in /etc/init.d/jottad
jottad
data directory mkdir -p /opt/.jottad
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)jotta-cli login
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "insert" | |
}, | |
"to": { | |
"key_code": "home" | |
} | |
}, | |
{ |
/** | |
* 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. |