Skip to content

Instantly share code, notes, and snippets.

View dsbaars's full-sized avatar

Djuri Baars dsbaars

View GitHub Profile
@dsbaars
dsbaars / bitaxe-new.yaml
Created June 18, 2024 12:36
New BitAxe HA integration
sensor:
- platform: rest
name: &device_name Device1
resource: http://<ipaddress1>/api/system/info
scan_interval: 60
value_template: "{{ value_json.power }}" # Example primary value
json_attributes:
- power
- voltage
- current
@dsbaars
dsbaars / configuration.yml
Created May 24, 2024 22:37
AxeOS Home Assistant integration
sensor:
- platform: rest
name: Device1
resource: http://<ipaddress1>/api/system/info
scan_interval: 60
value_template: "{{ value_json.power }}" # Example primary value
json_attributes:
- power
- voltage
- current
@dsbaars
dsbaars / docker-compose.yaml
Created January 23, 2024 14:58
Nextcloud AIO
version: '3'
services:
db:
image: mariadb
container_name: nextcloud-mariadb
networks:
- nextcloud_network
volumes:
- db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
@dsbaars
dsbaars / nordpool.yaml
Created January 3, 2023 17:51
nordpool two days
type: custom:apexcharts-card
header:
show: true
title: Nordpool Prize
show_states: false
graph_span: 2d
now:
show: true
label: Nu
span:
@dsbaars
dsbaars / .env
Created June 13, 2022 16:56
LN apps with SSO using traefik as reverse proxy
RTL_IMAGE=shahanafarooqui/rtl:0.12.3
THUNDERHUB_IMAGE=apotdevin/thunderhub:base-v0.13.13
TOR_IMAGE=lncm/tor:0.4.7.7
TOR_IP=10.21.21.11
LND_IMAGE=lightninglabs/lnd:v0.14.3-beta
LND_DATADIR=/home/umbrel/umbrel/app-data/lightning/data/lnd/
LND_IP=10.21.21.9
BITCOIND_IMAGE=lncm/bitcoind:v22.0
BITCOIND_DATADIR=/home/umbrel/umbrel/app-data/bitcoin/data/bitcoin/
BITCOIN_IP=10.21.21.8
@dsbaars
dsbaars / bitcoin.conf
Created June 1, 2022 12:17
bitcoin.conf testnet
testnet=1
server=1
rest=1
listen=1
rpcbind=0.0.0.0
server=1
txindex=1
whitelist=download@127.0.0.1
maxconnections=24
[test]
@dsbaars
dsbaars / docker-compose.override.yml
Created May 26, 2022 12:26
Tor 0.4.7.7 with Umbrel
---
version: "3.7"
services:
tor_proxy:
container_name: tor
image: "dsbaars/tor:0.4.7.7"
@dsbaars
dsbaars / lnd.conf
Created May 21, 2022 18:12
lnd.conf IPv4/IPv6/tor hybrid mode
[Application Options]
...
listen=:9735
...
tlsextaip=198.192.141.74
tlsextraip=2460:089c:d9f2:1603:7030:b52e:a5c5:f07c
externalip=198.192.141.74:9735
externalip=2460:089c:d9f2:1603:7030:b52e:a5c5:f07c:9735
externalhosts=rof.tools
@dsbaars
dsbaars / keysend.sh
Created March 3, 2022 16:41
keysend multiple nodes example
#!/bin/bash
input="keysends.txt"
while read -r line
do
# Make sure you change -a to the amount of sats you want to send, this script you run LND in a docker container called lnd
docker exec lnd lncli sendpayment --keysend --dest $line -a 1
done < "$input"
@dsbaars
dsbaars / show-tor-urls.sh
Last active January 14, 2022 21:58
Show all onion URLs of Umbrel apps
RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`
for hostnameFile in $(find ~/umbrel/tor/data/app* -name 'hostname' | sort) ; do
APPNAME=$(echo ${hostnameFile} | cut -d/ -f 7-7)
HOSTNAME=$(cat ${hostnameFile})
printf "%-40s" ${RED}${APPNAME}
printf "%s" ${GREEN}${HOSTNAME}
printf "${NC}\n"