From 51d6fdd0d807bc8b7c35a254bff63e67fb2a918d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Thu, 17 Mar 2022 11:53:16 +0300 Subject: [PATCH] docs(readme): reorder sections in README.md --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3d0c506..ade7e30 100644 --- a/README.md +++ b/README.md @@ -99,17 +99,6 @@ $ curl -F "file=@x.txt" -H "expire:10min" "" $ curl -F "oneshot=@x.txt" "" ``` -#### Cleaning up expired files - -```sh -#!/bin/env sh -now=$(date +%s) -find upload/ -maxdepth 2 -type f -iname "*.[0-9]*" | -while read -r filename; do - [ "$(( ${filename##*.} / 1000 - "${now}" ))" -lt 0 ] && rm -v "${filename}" -done -``` - #### URL shortening ```sh @@ -122,6 +111,17 @@ $ curl -F "url=https://example.com/some/long/url" "" $ curl -F "remote=https://example.com/file.png" "" ``` +#### Cleaning up expired files + +```sh +#!/bin/env sh +now=$(date +%s) +find upload/ -maxdepth 2 -type f -iname "*.[0-9]*" | +while read -r filename; do + [ "$(( ${filename##*.} / 1000 - "${now}" ))" -lt 0 ] && rm -v "${filename}" +done +``` + ### Server To start the server: