about summary refs log tree commit diff stats
path: root/adapter/tools
Commit message (Collapse)AuthorAgeFilesLines
* nc: various fixesbptato2025-04-131-14/+9
|
* nc: remove redundant quitbptato2025-03-011-1/+0
|
* dynstream: remove exceptionsbptato2025-02-261-11/+17
| | | | | | | | | | | | | Now we just pass down the value of n and check errno, plus readDataLoop/writeDataLoop returns a bool indicating whether it failed. For now this seems to work OK, but maybe I'll add a better abstraction in the future. EOFError is still used for handling failed packets; this is brittle, and should be replaced once we have a proper buffering mechanism for them. (That will also let us kill BufStream.) Unrelated: this also fixes a bug in buffer with cacheId.
* tools, format: disable ARCbptato2025-01-081-2/+0
| | | | it's still not quite there yet T_T
* format, tools: use ARCbptato2024-12-301-0/+2
| | | | | Greatly reduces binary sizes. I won't risk it for protocols yet. Neither for img, because it doesn't work with sixel at all. (y?)
* gopher: rewrite in shellbptato2024-11-051-10/+44
| | | | | | also, make gopher2html more lenient, and add some functioning error handling in our nc clone. (other scripts still have to be updated to benefit from this)
* urlenc: strip a trailing newline from input, etcbptato2024-11-011-24/+38
| | | | | | | | | * make it so 'echo "$var\n" | urlenc' works as expected * add special query encode set * set default encode set to form data * document encode sets in help message also, remove a redundant percentEncode implementation from gopher2html
* Add `nc' tool & adjust finger/spartan to use itbptato2024-10-121-0/+50
| | | | | | | | | Simple netcat clone, useful for portable scripts. Especially because some netcats will close the connection as soon as I close stdin... this one only quits when either stdout or the socket refuses new data. Also, it uses our standard TCP connection routine, meaning it respects ALL_PROXY. (i.e. now spartan works with socks5 too)
* urldec: merge into urlencbptato2024-08-112-22/+18
| | | | also, move the ln command to make all
* mancha: only set man as section without other parametersbptato2024-03-121-1/+2
| | | | e.g. `man 2 -k blah' should not override the section
* mancha: fix query for 7zbptato2024-03-111-1/+7
|
* Add mancha man page viewerbptato2024-01-261-0/+76
| | | | | | | | | | derived from w3mman2html.cgi, there are only a few minor differences: * different man page opener command * use man:, man-k:, man-l: instead of query string to specify action * no form input (C-lC-uman:pageC-m is faster anyway) TODO rewrite in Nim so we don't have to depend on Perl...
* Add urlenc, urldec; fix a URL encoding bug; improve trans.cgibptato2024-01-082-0/+47
* Fix incorrect internal definition of the fragment percent-encode set * urlenc, urldec: these are simple utility programs mainly for use with shell local CGI scripts. (Sadly the printf + xargs solution is not portable.) * Pass libexec directory as an env var to local CGI scripts * Update trans.cgi to use urldec and add an example for combining it with selections