Skip to content

Instantly share code, notes, and snippets.

View fensoft's full-sized avatar

fensoft

View GitHub Profile
@fensoft
fensoft / soft_wakeup_alexa.yaml
Last active October 24, 2025 08:02
Gentle Wake-up on Alexa Alarm
blueprint:
name: Gentle Wake-up on Alexa Alarm
description: >
Starts a sunrise X minutes before the next Alexa alarm (Alexa Media Player).
Event-driven: re-arms when the alarm sensor changes or HA restarts.
Fade via long transition or 1% steps paced to match fade_minutes.
domain: automation
input:
alexa_next_alarm_sensor:
name: Alexa "Next Alarm" sensor
git clone https://github.com/ilyakurdyukov/rk3528-tvbox.git
cd rk3528-tvbox
git clone --depth=1 https://github.com/armbian/build armbian-build
cp -R armbian-patch/* armbian-build/
cd armbian-build
./compile.sh build BOARD=rk3528-tvbox BRANCH=legacy BUILD_DESKTOP=no BUILD_MINIMAL=yes EXPERT=yes KERNEL_CONFIGURE=no KERNEL_GIT=shallow RELEASE=bookworm
cd ../..
cat <<EOF > rk3528-tvbox/build.sh
#!/bin/bash
cd /build
@fensoft
fensoft / fix-grub.sh
Last active November 6, 2025 21:25
install ubuntu 22 64 bits on 32 bits EFI
copy https://github.com/hirotakaster/baytail-bootia32.efi/blob/master/bootia32.efi to /EFI/BOOT
after installing ubuntu:
sudo passwd ubuntu
sudo apt update
sudo apt install openssh-server
ssh to your computer, then:
sudo mount /dev/mmcblk1p2 /mnt
sudo mount --bind /dev /mnt/dev