Skip to content

Instantly share code, notes, and snippets.

@diggit
diggit / valetudo_update.fish
Last active December 29, 2025 15:15
valetudo update script
#!/usr/bin/env fish
set HOSTNAME "dreame_vacuum_r2416a.lan"
set VALETUDO_ARCH "aarch64"
set BASE_URL "https://github.com/Hypfer/Valetudo/releases/latest/download/"
# set BASE_URL "https://github.com/Hypfer/Valetudo/releases/download/2025.12.0/"
if ping -c 1 -W 1 "$HOSTNAME" >/dev/null
echo "$HOSTNAME alive, good"
@diggit
diggit / modem_disable_firewall.py
Created August 30, 2025 23:22
Vodafone CZ Cable modem firewall (re)disable tool
#!/usr/bin/env python
# publisneed under CC0 license
# vodafone_disable_firewall - Script to disable the firewall on Vodafone cable network modem
# Written in 2025 by diggit @ github
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
@diggit
diggit / log.txt
Created February 4, 2020 13:58
A40 GSI bootup, grepped backlight|brightness
- waiting for device -
02-04 14:49:56.786 4021 4021 D SEC LightsHAL: !@ initialize_fds : g_lights_file_paths[0][0] : /sys/class/leds/lcd-backlight/brightness
02-04 14:49:56.787 4021 4021 D SEC LightsHAL: !@ initialize_fds : g_lights_file_paths[0][1] : /sys/class/backlight/panel/brightness
02-04 14:49:56.787 4021 4021 D SEC LightsHAL: !@ initialize_fds : g_lights_file_paths[1][0] : /sys/class/sec/sec_touchkey/brightness
02-04 14:49:56.787 4021 4021 D SEC LightsHAL: !@ initialize_fds : g_lights_file_paths[1][1] : /sys/class/leds/button-backlight/brightness
02-04 14:49:56.787 4021 4021 D SEC LightsHAL: !@ initialize_fds : g_lights_file_paths[1][2] : /sys/class/backlight/touchkey-led/brightness
02-04 14:49:56.787 4021 4021 D SEC LightsHAL: !@ initialize_fds : g_lights_file_paths[2][0] : /sys/class/sec/sec_keypad/brightness
02-04 14:49:56.787 4021 4021 D SEC LightsHAL: !@ initialize_fds : g_lights_file_paths[2][1] : /sys/class/leds/keyboard-backlight/brightness
02-04 14:49:56.787 4021 4021 D
:020000040800F2
:20000000980C0020790C0008510500085305000855050008570500085905000800000000A5
:200020000000000000000000000000005B0500085D050008000000005F0500086505000810
:20004000930C0008930C0008930C0008930C0008930C0008930C0008930C0008930C000868
:20006000930C0008930C0008930C0008930C0008930C0008930C0008930C0008930C000848
:20008000930C0008930C0008930C0008930C000861050008930C0008930C00086705000894
:2000A000930C0008930C0008930C0008930C0008930C0008930C0008930C0008930C000808
:2000C000930C0008930C0008930C0008930C0008930C0008930C0008930C0008930C0008E8
:2000E000930C0008930C0008930C000800F002F800F05CF80AA090E8000C82448344AAF187
:200100000107DA4501D100F051F8AFF2090EBAE80F0013F0010F18BFFB1A43F001031847AF
@diggit
diggit / github_pr.fish
Created October 15, 2016 20:32
Custom function to easily clone and pull upstream pullrequests
function echoR
echo -e "\x1b[31;1m""$argv""\x1b[0m"
end
function echoG
echo -e "\x1b[32;1m""$argv""\x1b[0m"
end
function echoY
echo -e "\x1b[33;1m""$argv""\x1b[0m"
@diggit
diggit / PKGBUILD
Last active March 22, 2016 02:50
PKGBUILD cpik 0.7.3-2
# Maintainer: Kevin Cox (youarefunny - [email protected])
# Contributor: Matias De la Puente ([email protected])
# Contributor: Patrik Bachan ([email protected])
pkgname=cpik
pkgver=0.7.3
_pkgver=$(echo $pkgver | tr -d '.')
pkgrel=2
pkgdesc='The C compiler for PIC18 devices'
url='http://pikdev.free.fr/'
license=('GPL')