Pushover notification for Transmission

I have transmission-damemon running headlessly on my NAS server and I have set up a Pushover notification for the completed downloads: #!/bin/sh TOKEN="Secret_Token" USER="Unique_User_ID" /usr/local/bin/curl -s \ --form-string "user=$USER" \ --form-string "token=$TOKEN" \ --form-string "message=Kesz: $TR_TORRENT_NAME" \ https://api.pushover.net/1/messages.json You can enable this script adding the following line to settings.json: "script-torrent-done-enabled": true, "script-torrent-done-filename": "/usr/local/etc/transmission/home/bin/pushover.sh", I also use Pushover for the smartmontools daily checks, but instead of...

Basics of Forth, pt. 2

Write a program that takes an integer, calculates the square and prints the result on the screen also print out a newline character \n after the result. : square-calc ( n -- n*n ) depth 1 < if ." Supply an integer and call square-calc again. " else ." The square of the number you entered is " dup * . cr then ; Write...

Prebuilt bootloaders

I have built the latest U-boot (2025.01-rc5) for Radxa Zero 3 (both W and E version supported): Bootloader storage Note: you have to extract the downloaded file first. How are they built? #!/bin/sh UB_TREE_PATH="/u-boot/u-boot-2025.01-rc5" cd $UB_TREE_PATH # rkbin: https://github.com/rockchip-linux/rkbin RKBIN="/rkbin/bin/rk35/" export BL31="$RKBIN/rk3568_bl31_v1.44.elf" export ROCKCHIP_TPL="$RKBIN/rk3566_ddr_1056MHz_v1.23.bin" gmake CROSS_COMPILE=aarch64-none-elf- distclean gmake CROSS_COMPILE=aarch64-none-elf- radxa-zero-3-rk3566_defconfig gmake CROSS_COMPILE=aarch64-none-elf- Most guide explains how to prepare an sd-card with both the OpenBSD installer...

Basics of Forth

Forth is a tiny programming language which can run interactively even on the smallest, cheapest, low-power microcontrollers. It is a REPL (Read–eval–print loop) system, which means it gives you a prompt where you type your commands in and it gets executed as soon as you press the ENTER key. If you want to learn Forth you will have to get used to its cryptic syntax...

Useful scripts

We can use shell scripts to automate recurring everyday tasks, and also we can create default workspaces, set up windows and programs for easy access. The following scripts are used on various BSDs, so I am almost sure they are portable, so they should work on your machine aswell. Some assembly required. Also no batteries included. Mounting the NAS SMB is overkill, so i use...