Restore pipe-sharing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6c7ac959cb
commit
b744735c25
3 changed files with 12 additions and 2 deletions
|
@ -57,8 +57,6 @@ alias :q='exit'
|
||||||
alias repo-add='repo-add -s --key D0391BF9'
|
alias repo-add='repo-add -s --key D0391BF9'
|
||||||
alias repo-remove='repo-remove -s --key D0391BF9'
|
alias repo-remove='repo-remove -s --key D0391BF9'
|
||||||
alias scrot='maim -s -u ~/Downloads/screenshot-$(%Y%m%d-%H%M%S).png'
|
alias scrot='maim -s -u ~/Downloads/screenshot-$(%Y%m%d-%H%M%S).png'
|
||||||
alias share='eval $(vault2env --key=secret/minio/knut-cc --export) && share --bucket=knut-cc --file-template="file/{{ printf \"%.8s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress'
|
|
||||||
alias shareperm='eval $(vault2env --key=secret/minio/knut-cc --export) && share --bucket=knut-cc --file-template="permanent/{{ printf \"%.8s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress'
|
|
||||||
alias shfmt='shfmt -d -s -ci'
|
alias shfmt='shfmt -d -s -ci'
|
||||||
alias ssh='ssh-key-host'
|
alias ssh='ssh-key-host'
|
||||||
alias terraria='docker run --rm -ti -v /home/luzifer/tmp/terraria:/data -p 7777:7777 luzifer/terraria'
|
alias terraria='docker run --rm -ti -v /home/luzifer/tmp/terraria:/data -p 7777:7777 luzifer/terraria'
|
||||||
|
|
6
bin/share
Executable file
6
bin/share
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
. <(vault2env --key=secret/minio/knut-cc --export)
|
||||||
|
|
||||||
|
exec ~/gocode/bin/share --bucket=knut-cc --file-template="file/{{ printf \"%.8s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress "$@"
|
6
bin/shareperm
Executable file
6
bin/shareperm
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
. <(vault2env --key=secret/minio/knut-cc --export)
|
||||||
|
|
||||||
|
exec ~/gocode/bin/share --bucket=knut-cc --file-template="permanent/{{ printf \"%.8s\" .Hash}}/{{ .SafeFileName }}" --base-url="https://knut.cc/#" --progress "$@"
|
Loading…
Reference in a new issue