redo-ifchange version.go
-perl -ne 'print "$1\n" if /Version.*"(.*)"$/' < version.go
+perl -ne 'print "$1\n" if /Version.*"(.*)"$/' <version.go
To remove knowledge of the host from any of the states mentioned above:
@example
-$ echo www.example.com > fifos/del-tls-auth
+$ echo www.example.com >fifos/del-tls-auth
@end example
$ [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
@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 <tofuproxy-@value{VERSION}.tar.zst
@end example
@end table
to domains only in @code{stargrave.org} tree:
@example
-$ tee fifos/add-restricted < contrib/restricted.txt
+$ tee fifos/add-restricted <contrib/restricted.txt
9215d9eeddeb403b0ffebb228cfc13104da825117d3640a0dfbfc0c08a012124 stargrave.org
[...]
@end example
(for advertisements and better user experience, they say).
@example
-$ tee fifos/add-spies < contrib/spies.txt
+$ tee fifos/add-spies <contrib/spies.txt
ads.google.com
advertising.yandex.ru
[...]
To delete one of them:
@example
-$ echo example.com > 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
@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.
Load WARCs:
@example
-$ tee fifos/add-warcs < warcs.txt
+$ tee fifos/add-warcs <warcs.txt
smth.warc-00000.warc.gz
smth.warc-00001.warc.gz
smth.warc-00002.warc.gz
smth.warc-00001.warc.gz 13
smth.warc-00002.warc.gz 0
another.warc 123
-$ echo another.warc > 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
@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.
@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
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 <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"
########################################################################
cd doc
-cat > download.texi <<EOF
+cat >download.texi <<EOF
You can obtain releases source code prepared tarballs on
@url{http://www.tofuproxy.stargrave.org}.
EOF
texi=$(mktemp)
-cat > $texi <<EOF
+cat >$texi <<EOF
\input texinfo
@documentencoding UTF-8
@settitle INSTALL
tarball=tofuproxy-"$release".tar.zst
ssh-keygen -Y sign -f ~/.ssh/sign/tofuproxy@stargrave.org -n file $tarball
gpg --armor --detach-sign --sign --local-user 3477D3292C775BF39DAA0E075921D596A332F844 "$tarball"
-meta4-create -fn "$tarball" -mtime "$tarball" \
+meta4ra-create -fn "$tarball" -mtime "$tarball" \
-sig-pgp "$tarball".asc -sig-ssh "$tarball".sig \
http://www.tofuproxy.stargrave.org/download/"$tarball" \
- http://y.www.tofuproxy.stargrave.org/download/"$tarball" < "$tarball" > "$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")
[ -s cert.pem ] || {
prev=`umask`
umask 077
- "$root"/cmd/certgen/certgen > cert.pem
+ "$root"/cmd/certgen/certgen >cert.pem
umask $prev
}
mkdir -p fifos