.zshrc: Add genpass() to generate passwords
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
222f291e28
commit
3c135c71b7
7
.zshrc
7
.zshrc
@ -124,5 +124,12 @@ smartresize() {
|
|||||||
gm mogrify -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -strip -output-directory $3 $1
|
gm mogrify -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -strip -output-directory $3 $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# generate random password 25 characters long:
|
||||||
|
# $ openssl rand -base64 18 | wc -c
|
||||||
|
# 25
|
||||||
|
genpass() {
|
||||||
|
openssl rand -base64 18
|
||||||
|
}
|
||||||
|
|
||||||
export PATH
|
export PATH
|
||||||
export MANPATH
|
export MANPATH
|
||||||
|
Loading…
Reference in New Issue
Block a user