diff options
Diffstat (limited to 'front.html.in')
-rw-r--r-- | front.html.in | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/front.html.in b/front.html.in new file mode 100644 index 0000000..fcd2afa --- /dev/null +++ b/front.html.in @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<!-- + python-interpreted variables that are available: + 0) {0} + 1) {1} + 2) {2} + 3) {3} + 4) {4} + 5) {5} + 6) {6} + 7) {7} + 8) {8} +--> +<html lang="en"> + <head> + <title>{6}</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8" /> + <meta name="description" content="Hex Zero" /> + </head> + <body id="body" class="dark-mode"> + <div class="clear" style="min-width: 1150px;"> + + <div id="main"> +<div class="block"> +<h1>THE NULL POINTER</h1> +<h2>file hosting and URL shortening service.</h2> +</div> +<h2>USAGE</h2> +<pre> +HTTP POST files here: + <code>curl -F'file=@yourfile.png' {0}</code> +post your text directly: + <code>echo "text here" | curl -F'file=@-;' {0}</code> +you can also POST remote URLs: + <code>curl -F'url=https://example.com/image.jpg' {0}</code> +or you can shorten URLs: + <code>curl -F'shorten=http://example.com/some/long/url' {0}</code> + +file URLs are valid for at least 30 days and up to a year (see below). +shortened URLs do not expire. +not allowed: {5} +maximum file size: {1} +</pre> + +<h2>ACCEPTABLE USE POLICY</h2> +<pre> +please do not post any informations that +may violate law (login/password lists, email lists, personal information). + +{0} is NOT a platform for: +</pre> +<ul> + <li>child pornography</li> + <li>malware, including potentially unwanted applications</li> + <li>botnet command and control schemes involving this service</li> + <li>anything even remotely related to crypto currencies</li> + <li>hosting your backups</li> + <li>spamming the service with CI build artifacts</li> + <li>piracy</li> + <li>alt-right shitposting</li> +</ul> +<h2>REQUIREMENTS</h2> +<pre> +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. +<small><a href="https://github.com/envs-net/0x0" target="_blank">https://github.com/envs-net/0x0</a></small> +you can also support it financially via liberapay. +<a href="https://en.liberapay.com/envs.net/donate" target="_blank" style="border-bottom-color: transparent;"><img src="https://img.shields.io/liberapay/receives/envs.net.svg?logo=liberapay" alt="img_shield_receives_via_liberapay"></a> +</pre> + +<h2>ALIAS</h2> +<pre> +to make your life easier, you can add aliases to your <code>.bash_aliases</code> on Linux +and <code>.bash_profile</code> on Mac OS X. just remember to reset your terminal session after that. +<code>0file() { curl -F"file=@$1" {0} ; } +0pb() { curl -F"file=@-;" {0} ; } +0url() { curl -F"url=$1" {0} ; } +0short() { curl -F"shorten=$1" {0} ; }</code> + +now you can use: +<code>0file "yourfile.png" +# or +echo "text here" | 0pb</code> + +<em>if you want a nice wrapper, try <a href="https://git.envs.net/envs/pb">~tomasino's pb</a></em> +</pre> + +<h2>FILE RETENTION PERIOD</h2> +<pre> +retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3) + + days + 365 | \\ + | \\ + | \\ + | \\ + | \\ + | \\ + | .. + | \\ + 197.5 | ----------..------------------------------------------- + | .. + | \\ + | .. + | ... + | .. + | ... + | .... + | ...... + 30 | .................... + 0{2}{3} + {4} +</pre> + +<h2>ABUSE</h2> +<pre> +if you would like to request permanent deletion, please +send an email to <a href="mailto:{8}?subject=Abuse%200x0%20-%20hex-zero" target="_blank">{8}</a>. + +please allow up to 24 hours for a response. +</pre> + </div> + +<!-- UPLOAD --> + + <div id="sidebar"> +<div class="block"> +<h2>UPLOAD DIRECTLY</h2> +<form action="{0}" method="POST" enctype="multipart/form-data"> +<label>File:</label> +<input class="form-control" type="file" name="file" style="width:250px;"><br /> +<input class="form-control" type="submit" value="Submit"> +</form> +</div> + </div> + <footer><pre class="clean">Adapted from <a href="https://github.com/envs-net/0x0">envs.net 0x0 app</a></footer> + <!-- +which itself is a fork of https://github.com/mia-0/0x0 and includes patches from +https://github.com/mia-0/0x0/pull/21 +https://github.com/iomintz/0x0/commit/51d51d4c00d9a5b66276a670b59308b5351a5e82 +--> + </div> + </body> +</html> |