Update mqttcli alias

to improve output

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-07-12 20:26:54 +02:00
parent 59afe8a585
commit 10db95f81a
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -49,7 +49,7 @@ alias l='eza --git -lg'
alias ls='/usr/bin/eza' alias ls='/usr/bin/eza'
alias lt='eza --git -lg --tree -I node_modules' alias lt='eza --git -lg --tree -I node_modules'
alias markdownlint='dtool markdownlint' alias markdownlint='dtool markdownlint'
alias mqttcli='vault2env --key=secret/private/mqttcli -- mqttcli' alias mqttcli='eval $(vault2env -e --key=secret/private/mqttcli) && mqttcli'
alias mysql='docker run --rm -ti -v $(pwd):$(pwd) -w $(pwd) mysql bash' alias mysql='docker run --rm -ti -v $(pwd):$(pwd) -w $(pwd) mysql bash'
alias mysqlpw='python3 -c "import hashlib; import sys; print(\"*{}\".format(hashlib.sha1(hashlib.sha1(sys.argv[1].encode(\"utf-8\")).digest()).hexdigest().upper()))"' alias mysqlpw='python3 -c "import hashlib; import sys; print(\"*{}\".format(hashlib.sha1(hashlib.sha1(sys.argv[1].encode(\"utf-8\")).digest()).hexdigest().upper()))"'
alias pushgallery='vault2env --key=secret/aws/private -- gallery --storage s3://io-luzifer-photos' alias pushgallery='vault2env --key=secret/aws/private -- gallery --storage s3://io-luzifer-photos'