aboutsummaryrefslogtreecommitdiff
path: root/front.html.in
blob: 705633ae1d0c0f51de2b6c28a5e22390774b4ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!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" />
      <link rel="stylesheet" href="/hex-zero/static/styles.css">
   </head>
   <body id="body">
      <div id="sidebar">
         <input id="toggle" type="checkbox" style="visibility:hidden">
         <label id="toggle" for="toggle">toggle upload form</label>
         <div class="box" style="text-align: center;">
            <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>
      <div class="clear" style="min-width: 600px;">
         <div id="main" style="max-width: 640px; width: 80%;">
            <div class="block">
               <h1>THE NULL POINTER</h1>
               <h2>file hosting and URL shortening service.</h2>
            </div>
            <h2>USAGE</h2>
            <p>
HTTP POST files here:
    <pre>curl -F'file=&#64;yourfile.png' {0}</pre>
post your text directly:
    <pre>echo "text here" | curl -F'file=@-;' {0}</pre>
you can also POST remote URLs:
    <pre>curl -F'url=https://example.com/image.jpg' {0}</pre>
or you can shorten URLs:
    <pre>curl -F'shorten=http://example.com/some/long/url' {0}</pre>

file URLs are valid for at least 30 days and up to a year (see below).<br/>
shortened URLs do not expire.<br/>
not allowed: {5}<br/>
maximum file size: {1}<br/>
            </p>
            <h2>ACCEPTABLE USE POLICY</h2>
            <p>please do not post any informations that
may violate law (login/password lists, email lists, personal information).<br/>
<br/>
{0} is NOT a platform for: </p>
            <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>
            </ul>
            <h2>REQUIREMENTS</h2>
            <p>
there is only one thing you need to use this service - curl.<br/>
curl is available on most platforms, including Windows, Mac OS X and Linux.<br/>
<br/>
if you run a server and like this site, clone it! centralization is bad.<br/>
<small><a href="https://github.com/envs-net/0x0" target="_blank">https://github.com/envs-net/0x0</a></small><br/>
you can also support it financially via liberapay.
</p>
            <h2>ALIAS</h2>
            <p>to make your life easier, you can add aliases to your <pre>.bash_aliases</pre> on Linux
and <pre>.bash_profile</pre> on Mac OS X. just remember to reset your terminal session after that.
<pre>0file&#40;&#41; &#123; curl -F"file=&#64;&#36;1" {0} ; &#125;
0pb&#40;&#41; &#123; curl -F"file=@-;" {0} ; &#125;
0url&#40;&#41; &#123; curl -F"url=&#36;1" {0} ; &#125;
0short&#40;&#41; &#123; curl -F"shorten=&#36;1" {0} ; &#125;</pre>

now you can use:
<pre>0file "yourfile.png"
&#35; or
echo "text here" | 0pb</pre>

<em>if you want a nice wrapper, try <a href="https://git.envs.net/envs/pb">~tomasino's pb</a></em></p>
            <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>
            <p>
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.
</p>
         </div>
         <!-- UPLOAD -->
      <footer>
         <div id="footer">
            <pre class="clean">Adapted from <a href="https://github.com/envs-net/0x0">envs.net 0x0 app</a>
         </div>
      </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>
bgstack15