GNU.WIKI: The GNU/Linux Knowledge Base
[HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]
[0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]
selection-pastebin - automatic pastebin upload
This is a little rarely useful extension that uploads the selection as
textfile to a remote site (or does other things). (The implementation
is not currently secure for use in a multiuser environment as it writes
to /tmp directly.).
It listens to the "selection-pastebin:remote-pastebin" keyboard
Pressing this combination runs a command with "%" replaced by the name
of the textfile. This command can be set via a resource:
URxvt.selection-pastebin.cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/.
And the default is likely not useful to anybody but the few people
around here :)
The name of the textfile is the hex encoded md5 sum of the selection,
so the same content should lead to the same filename.
After a successful upload the selection will be replaced by the text
given in the "selection-pastebin-url" resource (again, the % is the
placeholder for the filename):
Note to xrdb users: xrdb uses the C preprocessor, which might interpret
the double "/" characters as comment start. Use "//" instead,
which works regardless of whether xrdb is used to parse the resource
file or not.
All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to email@example.com.Page load time: 0.084 seconds. Last modified: November 04 2018 12:49:43.