From 457df95b08ca88100d31b7108124d459b82eb7ac Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 18 Apr 2024 13:28:38 +0300 Subject: [PATCH] Unify redirection operator usage --- VERSION.do | 2 +- doc/certs.texi | 2 +- doc/install.texi | 2 +- doc/integrity.texi | 2 +- doc/restricted.texi | 2 +- doc/spies.texi | 2 +- doc/tlsauth.texi | 4 ++-- doc/usage.texi | 2 +- doc/warcs.texi | 8 ++++---- fifos/multitail | 24 ++++++++++++------------ makedist | 8 ++++---- state-init | 2 +- 12 files changed, 30 insertions(+), 30 deletions(-) diff --git a/VERSION.do b/VERSION.do index 90ff3e2..9197a49 100644 --- a/VERSION.do +++ b/VERSION.do @@ -1,2 +1,2 @@ redo-ifchange version.go -perl -ne 'print "$1\n" if /Version.*"(.*)"$/' < version.go +perl -ne 'print "$1\n" if /Version.*"(.*)"$/' fifos/del-tls-auth +$ echo www.example.com >fifos/del-tls-auth @end example diff --git a/doc/install.texi b/doc/install.texi index 9d7dff7..2bd9135 100644 --- a/doc/install.texi +++ b/doc/install.texi @@ -10,7 +10,7 @@ WARCs support. $ [fetch|wget] http://www.tofuproxy.stargrave.org/download/tofuproxy-@value{VERSION}.tar.zst $ [fetch|wget] http://www.tofuproxy.stargrave.org/download/tofuproxy-@value{VERSION}.tar.zst.@{asc,sig@} [verify signature] -$ zstd -d < tofuproxy-@value{VERSION}.tar.zst | tar xf - +$ tar xf tofuproxy-@value{VERSION}.tar.zst $ cd tofuproxy-@value{VERSION} $ ./build @end example diff --git a/doc/integrity.texi b/doc/integrity.texi index 04571a7..f44863a 100644 --- a/doc/integrity.texi +++ b/doc/integrity.texi @@ -28,7 +28,7 @@ $ gpg --auto-key-locate wkd --locate-keys tofuproxy at stargrave dot org @example $ ssh-keygen -Y verify -f PUBKEY-SSH.pub -I tofuproxy@@cypherpunks.ru -n file \ - -s tofuproxy-@value{VERSION}.tar.zst.sig < tofuproxy-@value{VERSION}.tar.zst + -s tofuproxy-@value{VERSION}.tar.zst.sig fifos/del-tls-auth +$ echo example.com >fifos/del-tls-auth @end example To preadd: @example -$ echo example.com path/to/client.cert.pem > fifos/add-tls-auth +$ echo example.com path/to/client.cert.pem >fifos/add-tls-auth @end example diff --git a/doc/usage.texi b/doc/usage.texi index 57b0b3d..0ea417f 100644 --- a/doc/usage.texi +++ b/doc/usage.texi @@ -34,7 +34,7 @@ main.go:70: listening: [::1]:8080 dns: [::1]:53 certs: ./certs ccerts: ./ccerts @item Trust your newly generated CA: @example -# cat cert.pem >> /etc/ssl/cert.pem +# cat cert.pem >>/etc/ssl/cert.pem @end example @item Point you HTTP/HTTPS clients to @code{http://localhost:8080} proxy. diff --git a/doc/warcs.texi b/doc/warcs.texi index 7408e91..757f344 100644 --- a/doc/warcs.texi +++ b/doc/warcs.texi @@ -38,7 +38,7 @@ opened). Load WARCs: @example -$ tee fifos/add-warcs < warcs.txt +$ tee fifos/add-warcs fifos/del-warcs +$ echo another.warc >fifos/del-warcs @end example One possibility that @file{smth.warc-00002.warc.gz} has no URIs is that @@ -73,7 +73,7 @@ it contains continuation segmented records. @end itemize Loading of WARC involves its whole reading and remembering where is each -URI response is located. You can @code{echo SAVE > fifos/add-warcs} to +URI response is located. You can @code{echo SAVE >fifos/add-warcs} to save in-memory index to the disk as @file{....idx.gob} files. During the next load, if those files exists, they are used as index immediately, without expensive WARC parsing. @@ -100,7 +100,7 @@ and much higher decompression speed, than @file{.warc.gz}. @example $ cmd/warc-extract/warc-extract -for-enzstd /path/to.warc.gz | - cmd/zstd/enzstd > /path/to.warc.zst + cmd/zstd/enzstd >/path/to.warc.zst @end example @url{https://www.gnu.org/software/wget/, GNU Wget} can be easily used to diff --git a/fifos/multitail b/fifos/multitail index 05de2fd..d120450 100755 --- a/fifos/multitail +++ b/fifos/multitail @@ -2,15 +2,15 @@ exec multitail \ -wh 10 \ - -t "Trust" -ci magenta -l "while :; do tai64nlocal < log-cert ; done" \ - -t "DANE" -ci yellow --label "DANE " -L "while :; do tai64nlocal < log-dane ; done" \ - -t "Error" -ci red -L "while :; do tai64nlocal < log-err ; done" \ - -t "HTTPAuth" -ci green --label "Auth " -L "while :; do tai64nlocal < log-http-auth ; done" \ - -t "TLSAuth" -ci green --label "Auth " -l "while :; do tai64nlocal < log-tls-auth ; done" \ - -t "Response non-OK" --label "< " -L "while :; do tai64nlocal < log-non-ok ; done" \ - -t "Response OK" -ci green --label "< " -L "while :; do tai64nlocal < log-ok ; done" \ - -t "Redirect " -ci cyan --label "R " -L "while :; do tai64nlocal < log-redir ; done" \ - -t "Request" -ci blue --label "> " -L "while :; do tai64nlocal < log-req ; done" \ - -t "TLS connection" -ci yellow --label "S " -L "while :; do tai64nlocal < log-tls ; done" \ - -t "Various" -ci yellow -L "while :; do tai64nlocal < log-various ; done" \ - -t "WARC" -ci green --label "W " -L "while :; do tai64nlocal < log-warc ; done" + -t "Trust" -ci magenta -l "while :; do tai64nlocal " -L "while :; do tai64nlocal download.texi <download.texi < $texi <$texi < "$tarball".meta4 + http://y.www.tofuproxy.stargrave.org/download/"$tarball" <"$tarball" >"$tarball".meta4 size=$(( $(stat -f %z $tarball) / 1024 )) release_date=$(date "+%Y-%m-%d") diff --git a/state-init b/state-init index 53607c4..ca6468a 100755 --- a/state-init +++ b/state-init @@ -4,7 +4,7 @@ root="$(dirname "$(realpath -- "$0")")" [ -s cert.pem ] || { prev=`umask` umask 077 - "$root"/cmd/certgen/certgen > cert.pem + "$root"/cmd/certgen/certgen >cert.pem umask $prev } mkdir -p fifos -- 2.44.0