From 698a1f656700c68e014f7b863d0624d16f291e46 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Tue, 13 Jun 2023 00:04:37 -0400 Subject: [PATCH] Add uploader script --- upload.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 upload.sh diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..f07e873 --- /dev/null +++ b/upload.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +find ~/brain -name "*.md" -print0 | while IFS= read -r -d '' file +do + echo "Posting $file" + + curl -X POST -H "Content-Type: multipart/form-data" -F "files=@$file" http://localhost:8000/documents/?document_type=md + + sleep 30 + +done