Skip to content

Instantly share code, notes, and snippets.

View trunneml's full-sized avatar

Michael Graf trunneml

View GitHub Profile
@mikenabhan
mikenabhan / esphome-magtag.yaml
Created September 1, 2021 02:53
This is a GIST that will help you complile MagTag firmware in ESPHome while platformIO is in a transitional state.
substitutions:
devicename: magtag
upper_devicename: Magtag
esphome:
name: magtag
platform: esp32
board: esp32dev
platformio_options:
@hfreire
hfreire / rpi-usb.sh
Last active July 24, 2019 17:39
Enable/disable power on Raspberry Pi USB ports + Ethernet
#!/bin/sh
SOC_USB=/sys/devices/platform/soc/20980000.usb
if [ ! -d $SOC_USB ];
then
SOC_USB=/sys/devices/platform/soc/3f980000.usb # Raspberry Pi 3
fi
BUSPOWER=$SOC_USB/buspower