Add alias to encrypt passwords for htpasswd file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-22 20:46:27 +01:00
parent 4ec465d745
commit 8d28356113
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -34,6 +34,7 @@ bindkey '^[[1;5D' backward-word
## Aliases
alias alpine='docker run --rm -ti alpine /bin/sh'
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 :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/#"'