Skip to content

Instantly share code, notes, and snippets.

taskserver setup

This guide leads you through all the necessary steps to setup your own Taskserver to sync your Taskwarrior-tasks.

Please follow the steps carefully and note all things you do differently.

Preparation

Backup Your Data

@lemmi
lemmi / containers.conf
Created September 16, 2022 14:08
nested podman
default_ulimits = [
"nproc=1024:2048",
"nofile=1024:2048",
]
@lemmi
lemmi / Booting Debian on SolidRun ClearFog CN9130 Base and ClearFog CN9130 Pro.md
Last active July 17, 2022 15:40
Booting Debian on SolidRun ClearFog CN9130 Base and ClearFog CN9130 Pro

Booting Debian on SolidRun ClearFog CN9130 Base and CN9130 ClearFog CN9130 Pro

SolidRun provides different pre-baked images to get started with their ClearFog CN9130 devices. Most interesting is the Debian image, since it works with upstream kernels. The only real addition SolidRun made to the distribution are the device tree binaries, that have yet to find their way into mainline Linux.

Still, both devices aren't able to boot the image out of the box at the time of writing in mid July 2022.

Beginning with devices produced April 2022 or later, the units ship with a pre-programmed u-boot boot loader on the SPI flash. The devices are also selected to use this boot method and the boot loader is prepared to look on all other media for something bootable. This is convenient, since you can just plug in a microSD card and boot the thing, move the image onto the embedded eMMC and it will fallback

@lemmi
lemmi / gist:5adfdd2dadd744c553157a2546fc4572
Last active December 28, 2021 14:11 — forked from shinyquagsire23/gist:f7907fdf6b470200702e75a30135caf3
Philips Hue BLE Services and Characteristics (WIP)
reset sequence: turn off at least 5s, repeat until light flashes: 8s on, 2s off
Service [b8843add-0000-4aa1-8794-c3f462030bda] Unknown, ble_firmware_update?
Characteristic [b8843add-0004-4aa1-8794-c3f462030bda]
Characteristic [b8843add-0003-4aa1-8794-c3f462030bda]
Characteristic [b8843add-0002-4aa1-8794-c3f462030bda]
Characteristic [b8843add-0001-4aa1-8794-c3f462030bda]
Service [932c32bd-0000-47a2-835a-a8d455b859dd] light_control - startupConfiguration, combinedControl
Characteristic [932c32bd-0001-47a2-835a-a8d455b859dd] unk, 00 01 03 01 02 99 00 02 02 F4 01 03 02 01 00
Characteristic [932c32bd-0002-47a2-835a-a8d455b859dd] Light state, 01/00
@lemmi
lemmi / uboot.log
Last active July 5, 2021 20:37
ER-12 u-boot
SPI stage 1 bootloader
SPI ID: c2:20:17:c2:20
header found at offset 0x2000
Image 1.2: address: 0xffffffffc0000000, header length: 192, data length: 359416
Validating data...
Starting next bootloader at 0xffffffff81000000
Board type: UBNT_E300
U-Boot 2013.07 (UBNT Build Version: e302_001_3f6cf) (Aug 27 2018 - 07:21:15)
@lemmi
lemmi / adhocwg
Created October 24, 2020 08:04
small script to generate a pair of wireguard configurations that can be directly pasted to shell
#!/bin/sh
genscript() {
local PRIV=${1:?"No private key given"}
local PUB=${2:?"No public key given"}
local OTHER=${3:?"No peer public key given"}
local EP=${4:+"endpoint '$4':65534"}
local LL=$(echo $PUB | base64 -d | hexdump -n8 -e '"fe80:" 4/2 ":%04x" "/64\n"')
echo "ip link add dev wgadhoc type wireguard"
@lemmi
lemmi / bootlog
Last active October 21, 2020 06:08
er-pro
Jumping to start of image at address 0xbfca0000
U-Boot 2012.04.01 (UBNT Build Version: e200_002_80eda) (May 27 2019 - 06:34:56)
Skipping PCIe port 0 BIST, in EP mode, can't tell if clocked.
Skipping PCIe port 1 BIST, reset not done. (port not configured)
BIST check passed.
UBNT_E200 r1:0, r2:19, serial #: FCECDA05EB31
MPR 13-00317-19
@lemmi
lemmi / er-4.dts
Created October 20, 2020 18:39
er-4 dts
/dts-v1/;
/ {
compatible = "cavium,ubnt_e300";
model = "cavium,ubnt_e300";
interrupt-parent = <0x1>;
#address-cells = <0x2>;
#size-cells = <0x2>;
soc@0 {
@lemmi
lemmi / edgeOS.dts
Created October 20, 2020 06:26
ERPro-8 DTS
/dts-v1/;
/ {
compatible = "ubnt,e200";
model = "ubnt,e200";
interrupt-parent = <0x1>;
#address-cells = <0x2>;
#size-cells = <0x2>;
soc@0 {
@lemmi
lemmi / wol.sh
Last active October 19, 2020 23:52
WOL with openwrt basic tools
#!/bin/sh
# see https://en.wikipedia.org/wiki/Wake-on-LAN#Magic_packet
MAGIC="\xFF\xFF\xFF\xFF\xFF\xFF"
MAC=${1:?"No mac address"}
MACHEX="\x$(echo $MAC | sed -e 's/:/\\x/g')"
netmsg 255.255.255.255 $(printf "$MAGIC$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX$MACHEX")