summary refs log tree commit diff
path: root/bin/man1/up.1
blob: 58b5359f73a9622ae2d907455cf2aa2c4a07ddbf (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
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
.Dd July 15, 2019
.Dt UP 1
.Os
.
.Sh NAME
.Nm up
.Nd upload file
.
.Sh SYNOPSIS
.Nm
.Op Fl h
.Op Ar file
.
.Nm
.Fl c | t
.Ar command ...
.
.Nm
.Fl s
.
.Sh DESCRIPTION
.Nm
uploads a file
to temp.causal.agency with
.Xr scp 1 .
If no
.Ar file
is provided,
standard input is read
and uploaded as text.
.
.Pp
The destination file name
is chosen using
.Xr date 1
and
.Xr openssl 1
.Cm rand .
The URL of the uploaded file is printed
and copied to the pasteboard with
.Xr pbcopy 1
if available.
.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.It Fl c
Run a command
to produce a text file for upload.
.It Fl h
Use
.Xr hi 1
to produce an HTML file for upload.
.It Fl s
Use
.Xr screencapture 1
to produce a PNG file for upload.
The file is optimized by
.Xr pngo 1
if available.
.It Fl t
Run a command with
.Xr ptee 1
and
.Xr shotty 1
to produce an HTML file for upload.
.El
.
.Pp
Any arguments after
.Ql \-\-
are passed to
.Xr hi 1
and
.Xr screencapture 1 ,
respectively.
it/local.c?h=1.2&id=510e4e18d1ce46d8a1ae2ed5eff54304598c1529&follow=1'>Rename listen to localJune McEnroe 2019-11-09Remove extended-join and invite-notifyJune McEnroe 2019-11-09Maintain stateCaps and offer them to clientsJune McEnroe 2019-11-09Parse capabilitiesJune McEnroe 2019-11-09Avoid the reserved _A names with BIT macroJune McEnroe 2019-11-09Define macro for bit flag enumsJune McEnroe 2019-11-08Check that password is hashedJune McEnroe 2019-11-08Avoid calling getopt_long again after it returns -1June McEnroe 2019-11-08Only change AWAY status for registered clientsJune McEnroe 2019-11-07Just write the example normallyJune McEnroe 2019-11-07Include path in readlinkat errorJune McEnroe 2019-11-07Call clientConsume before clientRecvJune McEnroe 2019-11-06Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe