Skip to content

Instantly share code, notes, and snippets.

View randybb's full-sized avatar
🐧

Roman Priesol randybb

🐧
  • Slovakia, Hviezdoslavov
  • 21:30 (UTC +02:00)
View GitHub Profile
@randybb
randybb / .config-mmb
Created April 23, 2024 14:08
Update klipper MCUs
CONFIG_LOW_LEVEL_OPTIONS=y
# CONFIG_MACH_AVR is not set
# CONFIG_MACH_ATSAM is not set
# CONFIG_MACH_ATSAMD is not set
# CONFIG_MACH_LPC176X is not set
CONFIG_MACH_STM32=y
# CONFIG_MACH_HC32F460 is not set
# CONFIG_MACH_RP2040 is not set
# CONFIG_MACH_PRU is not set
# CONFIG_MACH_AR100 is not set
@randybb
randybb / car1.yaml
Created October 29, 2023 15:52
gate
substitutions:
device: car1
name: CAR1
comment: "car1"
esphome:
name: mcu-${device}
comment: ${comment}
on_loop:
then:
@randybb
randybb / compile_prod.sh
Created June 20, 2023 18:59
esphome compile/update
#!/bin/bash
export ESPHOME_IS_HA_ADDON=true
while IFS=, read -r device
do
esphome compile ${device}.yaml
done < devices_prod.csv
@randybb
randybb / esphome-dashboard.sh
Created November 21, 2022 17:48
ESPHome systemd service
#!/bin/bash
source /srv/esphome/bin/activate
/srv/esphome/esphome /srv/esphome/ dashboard
# as root
mkfs.msdos -C ~/test/gotek/DISKLABEL.img 1440
mkdir /media/floppy/
mount -o loop ~/test/gotek/DISKLABEL.img /media/floppy/
[
[ 0] {
:id => "1",
:name => "Po1",
:flags => [
[0] {
:id => "S",
:name => "Layer2"
},
[1] {