Moar scripts
This commit is contained in:
parent
a428063100
commit
8e13bb968c
|
@ -4,7 +4,7 @@ HOST="ld"
|
|||
INTERNAL_PUBLIC_DIR="~/../services/data/files/pastes"
|
||||
|
||||
f="${1}"
|
||||
uuid="$(uuid v1)"
|
||||
uuid="$(uuid -v 1)"
|
||||
|
||||
[ "${f}" == "" ] && echo "No file provided. Exiting." >&2 && exit 2
|
||||
[ ! -f "${f}" ] && echo "File '$f' does not exist. Exiting." >&2 && exit 1
|
||||
|
|
15
scripts/bin/upload
Executable file
15
scripts/bin/upload
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
HOST="ld"
|
||||
INTERNAL_PUBLIC_DIR="~/../services/data/files/uploads"
|
||||
|
||||
f="${1}"
|
||||
fname="$(basename "${f}")"
|
||||
uuid="$(uuid -v 1)"
|
||||
|
||||
[ "${f}" == "" ] && echo "No file provided. Exiting." >&2 && exit 2
|
||||
[ ! -f "${f}" ] && echo "File '$f' does not exist. Exiting." >&2 && exit 1
|
||||
|
||||
scp "${f}" "${HOST}:${INTERNAL_PUBLIC_DIR}/${fname}"
|
||||
|
||||
echo "${f} uploaded to https://lyte.dev/uploads/${fname}"
|
|
@ -97,6 +97,8 @@ alias gpmdpe="electron --app=/usr/share/gpmdp/resources/app.asar"
|
|||
alias t="task"
|
||||
alias sc="sc-im"
|
||||
alias scs="sc-im \"\$NOTES_PATH/_scratch.sc\""
|
||||
alias disks="lsblk && df -h"
|
||||
alias dd="dd status=progress"
|
||||
|
||||
# games aliases
|
||||
# this sometimes fixes steam dynamic library issues?
|
||||
|
@ -108,3 +110,6 @@ alias man="vman"
|
|||
|
||||
# neomutt is better
|
||||
alias mutt="neomutt"
|
||||
|
||||
# fsw aliases
|
||||
alias fsw-mix-test="fsw \"mix test\" ./**/*.{ex,exs,erl,hrl,xrl,yrl}"
|
||||
|
|
Reference in a new issue