]> git.xolatile.top Git - emil-up.chud.cyou.git/commitdiff
index
authorEmil Williams <emilemilemil@cock.li>
Sun, 10 Aug 2025 20:05:11 +0000 (20:05 +0000)
committerEmil Williams <emilemilemil@cock.li>
Sun, 10 Aug 2025 20:05:11 +0000 (20:05 +0000)
index.html

index 91d29f024fa7efec887e37dafe1cb329ff3c181e..e5e0b91d1b03c6518dd7ba68a14fd5afdef3c189 100644 (file)
         <p>You may upload files using the above form or the following command:</p>
         <pre>
 curl https://up.chud.cyou --upload-file 'file'
-# alternatively
+        </pre>
+        <p>Alternatively</p>
+        <pre>
 curl https://up.chud.cyou -F'file=@file'
-# as a shell function
-upload(){
-url="$1"
-shift
-if [ -z "$@" ] ; then curl "$url" -F"file=@/dev/stdin"; fi
-for i in "$@"; do
-if [ "$i" = "-" ]; then i="/dev/stdin" ; fi
-curl "$url" -F"file=@$i"
-done
-}
-chud(){ upload "https://up.chud.cyou" "$@" ; }
         </pre>
         <p>
           Files are wiped monthly and may not be larger than 100 mebibytes.
@@ -44,8 +35,9 @@ chud(){ upload "https://up.chud.cyou" "$@" ; }
         <p>
           <a href="https://git.xolatile.top/anon/upchud">[Original Source]</a>
           <a href="https://git.xolatile.top/emil/up.chud.cyou">[Deployment's Source]</a>
-          <a href="https://files.xolatile.top/0x0_config.el">[Emacs Configuration]</a>
-          <br/>
+          <br />
+          <a href="https://files.xolatile.top/chud_upload.sh">[Shell Code]</a>
+          <br />
           <a href="mailto:admin@chud.cyou">[Contact & Reports]</a>
         </p>
         <p>