Add alias to encrypt passwords for htpasswd file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4ec465d745
commit
8d28356113
1 changed files with 1 additions and 0 deletions
|
@ -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/#"'
|
||||
|
|
Loading…
Reference in a new issue