I hereby claim:
- I am miklosbagi on github.
- I am miklosbagi (https://keybase.io/miklosbagi) on keybase.
- I have a public key ASCKgmujYDy14kcwYYJg0uyxLRtahnJHrw98eggqBX9FtQo
To claim this, I am signing this object:
#!/bin/bash | |
[ -z "$1" ] && { echo "Give me the Xiaomi string (e.g. ZNDRTERCGVDD@XES)"; exit 1; } | |
key="55"; d=""; hex=`echo -n "$1" | od -An -tuC` | |
for c in $hex; do xor=$(($c^$key)); printf "\\$(printf '%03o' "$xor")"; done; echo |
array ( | |
'ALL' => 'Albania Lek', | |
'AFN' => 'Afghanistan Afghani', | |
'ARS' => 'Argentina Peso', | |
'AWG' => 'Aruba Guilder', | |
'AUD' => 'Australia Dollar', | |
'AZN' => 'Azerbaijan New Manat', | |
'BSD' => 'Bahamas Dollar', | |
'BBD' => 'Barbados Dollar', | |
'BDT' => 'Bangladeshi taka', |
I hereby claim:
To claim this, I am signing this object:
od -x /dev/urandom | head -1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}' |
networks: | |
nexus: | |
services: | |
# pre container is used to set the correct permissions on the nexus-data and config dirs | |
pre: | |
image: alpine:3.19 | |
volumes: | |
- ./data:/data | |
- ./config:/config |
docker buildx build --platform linux/amd64,linux/arm64 . |
blueprint: | |
name: Low battery level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a certain battery level threshold and if so execute an action. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |
services: | |
localstack: | |
image: localstack/localstack | |
ports: | |
- "4566-4599:4566-4599" | |
- "8080:8080" | |
environment: | |
- SERVICES=s3 # we only need s3 bucket | |
- DEBUG=1 | |
- DATA_DIR=/tmp/localstack/data # we need this to make our volume work |
Minimal linux version for all of those gRPC services that don't provide health port.
Example with gripmock
gripmock:
image: gripmock/gripmock
ports:
- "${STUB_GRPC_PORT}:${STUB_GRPC_PORT}"
- "${STUB_ADMIN_PORT}:${STUB_ADMIN_PORT}"