Skip to content

Instantly share code, notes, and snippets.

View miaucl's full-sized avatar
🚀
Home automation is ful!

Cyrill Raccaud miaucl

🚀
Home automation is ful!
View GitHub Profile
@miaucl
miaucl / Readme.md
Last active April 3, 2025 13:59
Cube Battery SOC Station powered by ESPHome
@miaucl
miaucl / RootedAndroidAVD.md
Last active September 24, 2025 09:58
Rooted Android AVD for API reverse-engineering

Preparation

Set up all tools we need.

Install Android Studio

Make sure to use custom installation and add platform-tools as well. Add following to your path (depending on your OS)

@miaucl
miaucl / README.md
Last active February 27, 2021 14:28
Raspberry Pi Backups on External Device

Mount

  1. Mount the external device automatically, here it is a NAS available at the address/path //CL-NAS/home mounted to /backup. Add following line to /etc/fstab:
//CL-NAS/home         /backup       cifs  defaults,rw,credentials=/etc/nas-credentials,x-systemd.automount 0 0

To mount a usb device instead, have a look at this

This will keep the external device mounted at the specified location, even after reboots and crashes.

  1. Add a credential file at /etc/nas-credentials:
@miaucl
miaucl / Raspberry Pi Power Button Script.md
Last active December 18, 2020 12:52
Raspberry Pi Power Button Script

Install Raspberry Pi Power Button Script

Make sure you have a raspberry pi. (This script is tested with the raspbian dist on a series 3 model B+)

DISCLAIMER: Look at the script for the PINS and PORTS used. You can change it in the section Configuration if you like.

  1. Download the raspberry-pi-power-button-script.py script, name something like shutdown.py and put it somewhere publicly available.

  2. Make script executable with chmod +x <absolute_path_to>/shutdown.py.