- Add
jottad
as a user and group in the web interface - Download jotta-cli
sudo tar -xf jotta-cli_xxx_linux_arm64.tar.gz
sudo mv etc/jottad /etc/
sudo mv usr/share/jottad /usr/share
sudo mv usr/bin/jotta* /usr/bin
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; 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 |
- Install ca-bundle
opkg update && opkg install ca-bundle
if not already installed for https - Download the binary from https://repo.jotta.us/archives/linux/arm64/ and untar in
/opt/jotta-cli
- cd into the
jotta-cli
dir - Modify
source=/usr/share/jottad
tosource="/opt/usr/share/jottad"
/in./usr/share/jottad/install.sh
- run
./usr/share/jottad/install.sh
and./usr/share/jottad/install-path.sh
- modify
group=jottad
togroup=tmusers
and addumask=0002
in/etc/init.d/jottad
- create the
jottad
data directorymkdir -p /opt/.jottad
- Start
jottad
withstart-stop-daemon -b -x /opt/bin/jottad slow lowmem datadir /opt/.jottad -S
(add this to/etc/rc.local
to start automatically) - Login
jotta-cli login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "insert" | |
}, | |
"to": { | |
"key_code": "home" | |
} | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. |
NewerOlder