summaryrefslogtreecommitdiff
path: root/storage/index.html
blob: 4cfaf0e7d9818b1fc4b7ad1754ed82e9566ede09 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NixShare</title>
</head>
<body>
    <h1>Nixshare</h1>
    <h2>Usage:</h2>
    <h3>Upload file:</h3>
    <pre>
        curl -d @FILENAME https://nixshare.ru/upload
    </pre>
    <h3>Upload clipboard:</h3>
    <p>X:</p>
    <pre>
        xclip -o | curl -d @- https://nixshare.ru/upload
    </pre>
    <p>Wayland (<code>wl-clipboard</code> required):</p>
    <pre>
        wl-paste | curl -d @- https://nixshare.ru/upload
    </pre>
    <h3>Shell alias:</h3>
    <p>You can add shell aliases to .bashrc or .zshrc file:</p>
    <p>X:</p>
    <pre>
        alias nsh="xclip -o | curl -d @- https://nixshare.ru/upload 2>/dev/null | xclip"
    </pre>
    <p>Wayland (<code>wl-clipboard</code> required):</p>
    <pre>
        alias nsh="wl-paste | curl -d @- https://nixshare.ru/upload 2>/dev/null | wl-copy"
    </pre>
</body>
</html>