Skip to content

Instantly share code, notes, and snippets.

View tribut's full-sized avatar
🕺
Never gonna give you up

Felix Eckhofer tribut

🕺
Never gonna give you up
View GitHub Profile
@tribut
tribut / ds102-1.yaml
Last active February 27, 2022 22:00
Esphome config for DS102 (1 Gang)
substitutions:
device_name: your_device_name
friendly_name: "Your Device Name"
api_password: "pass1"
ota_password: "pass2"
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
@tribut
tribut / ds102-3.yaml
Created August 6, 2019 14:26
Esphome config for DS102 (3 Gang)
substitutions:
device_name: your_device_name
friendly_name: "Your Device Name"
api_password: !secret api_password
ota_password: !secret ota_password
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
#!/bin/bash
set -eEuo pipefail
# docker run -d -t --name paperless-test -v $(pwd):/paperless ubuntu:focal /bin/bash
# docker exec -it paperless-test /bin/bash
apt update
apt install --no-install-recommends --assume-yes python3 python3-pip python3-dev fonts-liberation gnupg libpq-dev libmagic-dev mime-support unpaper tesseract-ocr imagemagick ghostscript optipng
@tribut
tribut / update-starship-config.sh
Created December 11, 2023 13:03
Combine multiple toml files for starship
#!/bin/bash
set -eEuo pipefail
CONF_FILE="$HOME/.config/starship.toml"
CONF_D="$HOME/.config/starship.d"
TEMPFILE="$(mktemp)"
starship preset -o "$CONF_D/99-nerd-font-symbols.toml" nerd-font-symbols