From a295dbacf0b989e6c91110170e56626570fcd087 Mon Sep 17 00:00:00 2001 From: cremesk Date: Sat, 6 Jul 2019 02:21:03 +0200 Subject: update informations and html layout --- fhost.py | 45 ++++++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 13 deletions(-) (limited to 'fhost.py') diff --git a/fhost.py b/fhost.py index f5cf761..2f2297a 100755 --- a/fhost.py +++ b/fhost.py @@ -342,7 +342,7 @@ def fhost(): if maxsizehalf.is_integer(): maxsizehalf = int(maxsizehalf) - return """ + return """ {6} @@ -350,10 +350,12 @@ def fhost(): -
+
-

THE NULL POINTER

+

envs.net | THE NULL POINTER

+

file hosting and URL shortening service.

+

USAGE

HTTP POST files here: curl -F'file=@yourfile.png' {0} You can also POST remote URLs: @@ -363,9 +365,8 @@ Or you can shorten URLs: File URLs are valid for at least 30 days and up to a year (see below). Shortened URLs do not expire. - -Maximum file size: {1} Not allowed: {5} +Maximum file size: {1} 0x0.envs.net is NOT a platform for: * child pornography @@ -377,19 +378,24 @@ Not allowed: {5} * piracy * alt-right shitposting -

UPLOAD DIRECTLY

-
- - - -
+

REQUIREMENTS

+There is only one thing you need to use this service - curl. +Curl is available on most platforms, including Windows, Mac OS X and Linux. If you run a server and like this site, clone it! Centralization is bad. -https://github.com/cremesk/0x0 - +https://github.com/cremesk/0x0 You can also support it financially via Liberapay. Donate using Liberapay +

ALIAS

+To make your life easier, you can add alias to your .bashrc on Linux +and .bash_profile on Mac OS X. Just remember to reset your terminal session after that. +0file() { curl -F"file=@$1" {0} } +0url() { curl -F"url=$1" {0} } +0short() { curl -F"shorten=$1" {0}; } + +0file yourfile.png +

FILE RETENTION PERIOD

retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3) @@ -424,6 +430,19 @@ send an email to + +
+

UPLOAD DIRECTLY

+
+ + + +
+ +
-- cgit