diff --git a/.zsh/config.sh b/.zsh/config.sh index 6f5f624..b738c15 100644 --- a/.zsh/config.sh +++ b/.zsh/config.sh @@ -37,6 +37,7 @@ alias bcrypt='python3 -c "import bcrypt; import sys; print(bcrypt.hashpw(sys.arg alias gometalinter='gometalinter --enable-all -D aligncheck -D errcheck -D lll --cyclo-over=15 -e bindata.go --vendor' alias htpasswd='python3 -c "import crypt; import sys; print(crypt.crypt(sys.argv[1], crypt.mksalt(crypt.METHOD_SHA512)));"' 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 :q='exit' alias share='AWS_REGION=us-east-1 vault2env --key=secret/aws/private -- share --bucket=share-luzifer-io-s3bucket-164ztrtyq1f35 --base-path="file/{{ printf \"%.6s\" .Hash}}" --base-url="https://knut.cc/#"'