summaryrefslogtreecommitdiff
path: root/upload
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-24 20:36:04 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-24 20:36:04 +0300
commit805c951522bc5063849b51a729b08bfdf16168df (patch)
tree302b1842142b6b451a7b0a2124e0e1769dbc4816 /upload
parentc702b3c1d5420be981f67cdc40d62052df87563c (diff)
Adding X11, zsh, nvtop, dmenu and some other tools for wallpapers,
power menus, uploading simple text/binary files. Changes to be committed: new file: X11/Xresources new file: X11/xinit new file: bmenu new file: dmenu.conf new file: nvtop/interface.ini new file: pmenu new file: upload new file: zsh/aliases new file: zsh/env new file: zsh/zshrc
Diffstat (limited to 'upload')
-rwxr-xr-xupload12
1 files changed, 12 insertions, 0 deletions
diff --git a/upload b/upload
new file mode 100755
index 0000000..26d9510
--- /dev/null
+++ b/upload
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+if [ "$1" = "" ];then echo "No args"; exit; fi
+
+TO_UPLOAD_FILE="$1"
+
+RETURN_LINK=$(curl -F "file=@$TO_UPLOAD_FILE" https://0x0.st)
+
+echo $RETURN_LINK | xsel -b
+echo $RETURN_LINK