Add markdownlint dtool

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-08-21 15:26:11 +02:00
parent 1a2f3a9653
commit 9a981fec37
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,8 @@
FROM node:alpine
ARG UID=1000
RUN set -ex \
&& yarn --cwd /tmp global add markdownlint-cli
ENTRYPOINT ["markdownlint"]

View file

@ -48,6 +48,7 @@ alias htpasswd='python3 -c "import crypt; import sys; print(crypt.crypt(sys.argv
alias just='just --no-dotenv' alias just='just --no-dotenv'
alias l='ls --git -lg' alias l='ls --git -lg'
alias ls='/usr/bin/exa' alias ls='/usr/bin/exa'
alias markdownlint='dtool markdownlint'
alias mqttcli='vault2env --key=secret/private/mqttcli -- mqttcli' alias mqttcli='vault2env --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()))"'