From 094e63a2ef716876fc299d03be02f90218266d21 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Wed, 28 Aug 2024 14:58:57 +0300 Subject: [PATCH] fix readme --- Makefile | 10 ++++++++++ storage/index.html | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..db4ded9 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: deploy + +deploy: + docker context use default + docker build -t gitrepo.ru/neonxp/nixshare:latest . + docker push gitrepo.ru/neonxp/nixshare:latest + docker context use curie + docker pull gitrepo.ru/neonxp/nixshare:latest + docker rm nixshare || true + docker run --name nixshare -d -p 8095:8000 -v nixshare:/app/storage gitrepo.ru/neonxp/nixshare \ No newline at end of file diff --git a/storage/index.html b/storage/index.html index a83c858..4cfaf0e 100644 --- a/storage/index.html +++ b/storage/index.html @@ -6,8 +6,30 @@ NixShare +

Nixshare

+

Usage:

+

Upload file:

         curl -d @FILENAME https://nixshare.ru/upload
     
+

Upload clipboard:

+

X:

+
+        xclip -o | curl -d @- https://nixshare.ru/upload
+    
+

Wayland (wl-clipboard required):

+
+        wl-paste | curl -d @- https://nixshare.ru/upload
+    
+

Shell alias:

+

You can add shell aliases to .bashrc or .zshrc file:

+

X:

+
+        alias nsh="xclip -o | curl -d @- https://nixshare.ru/upload 2>/dev/null | xclip"
+    
+

Wayland (wl-clipboard required):

+
+        alias nsh="wl-paste | curl -d @- https://nixshare.ru/upload 2>/dev/null | wl-copy"
+    
\ No newline at end of file