Hah, because the admin username is step
, not admin or admin (JWK) or anything like that.
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}"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker buildx build --platform linux/amd64,linux/arm64 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
od -x /dev/urandom | head -1 | awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}' |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |