manbytesgnu_site

Source files for manbytesgnu.org
git clone git://holbrook.no/manbytesgnu_site.git
Log | Files | Refs

commit 1598776431407220c6524bdac50ad499d6e30c3a
parent 1a41966caebb795b6af5613c2aa04ad70a863e79
Author: nolash <dev@holbrook.no>
Date:   Sun,  2 May 2021 20:33:15 +0200

Explicit sources

Diffstat:
Mcontent/20210419_docker_python.rst | 8++++++--
Mcontent/20210420_docker_offline.rst | 4++--
Mcontent/code/web-snapshot/webshot.sh | 46++++++++++++++++++++++++++++++++++++++++------
Mcontent/pages/projects.rst | 45+++++++++++++++++++++++----------------------
Mlash/static/css/style.css | 5+++++
5 files changed, 76 insertions(+), 32 deletions(-)

diff --git a/content/20210419_docker_python.rst b/content/20210419_docker_python.rst @@ -40,7 +40,9 @@ I'll be so bold as to assume that you are using ``pip`` to manage your packages. ERROR: Could not find a version that satisfies the requirement faker (from versions: none) ERROR: No matching distribution found for faker -Dang, apparently not that simple. And indeed, if we read up on the spec for `PEP 503 spec for Simple Repository API`_, we learn that we are going to stick those package files under directories named after the packages. That means a bit of bash scripting: +Dag nabbit. Apparently not that simple. And indeed, if we read up on the spec for `PEP 503 spec for Simple Repository API`_, we learn that we are going to stick those package files under directories named after the packages. + +Well, nothing that a bit of bash scripting can't sort out: .. include:: code/docker-offline-python/pep503.sh :code: bash @@ -80,7 +82,9 @@ Armed with this, let's try again: Extra prepping ============== -There are some basic packages you will most always need, and which ``pip`` often will expect to find in at least one of its available repositories, even regardless of whether its installed or not. If you don't have this on your local offline repository when the internet goes out, then that will block any build you are attempting. So let's make sure we have the packages around, too: +There are some basic packages you will most always need, and which ``pip`` often will expect to find in at least one of its available repositories, even regardless of whether its installed or not. If you don't have this on your local offline repository when the internet goes *poof*, then that will block any build you are trying to do. + +Let's make sure we have the packages around all the time: .. code-block:: bash diff --git a/content/20210420_docker_offline.rst b/content/20210420_docker_offline.rst @@ -1,5 +1,5 @@ -All you need is your host -######################### +The routing to freedom +###################### :date: 2021-04-26 07:54 :category: Offlining diff --git a/content/code/web-snapshot/webshot.sh b/content/code/web-snapshot/webshot.sh @@ -1,18 +1,52 @@ #!/bin/bash -f=${HOME}/articles +# possible regex for title +# grep -e "<title>" | sed -e "s/^.*<title>\([^<]*\)<\/title>/\\1/g +# should also convert xml entities, eg. &#8211 -> \u2013 (int -> hex) and render + +f=${WEBSHOT_OUTPUT_DIR:-/tmp} +title_parser=${WEBSHOT_TITLE_PARSER} # script that takes contents.txt as input and outputs a single utf8 string +title=$2 +>&2 echo using outdir $f + set +e + +# prepare d=`TZ=UTC date +%Y%m%d%H%M` t=`mktemp -d` pushd $t -echo $@ > url.txt -curl -s -I $@ > headers.txt -curl -s -X GET $@ > contents.txt + +# store raw outputs +echo $1 > url.txt +curl -s -I $1 > headers.txt +curl -s -X GET $1 > contents.txt sha256sum contents.txt > contents.txt.sha256 + +# determine title to use and store it, too +#TODO insert title name protection for mkdir +if [ -z "$title" ]; then + if [ ! -z "$title_parser" ]; then + title=`$title_parser contents.txt` + fi +fi + +if [ ! -z "$title" ]; then + echo $title > title.txt +fi +>&2 echo using title $title + + +# rendered snapshot h=`cat contents.txt.sha256 | awk '{ print $1; }'` -chromium --headless --print-to-pdf $@ +chromium --headless --print-to-pdf $1 n=${d}_${h} mv output.pdf $n.pdf -tar -zcvf $f/$n.tar.gz * + +# store result +mkdir -p "$f/$title" +tar -zcvf "$f/$title/$n.tar.gz" * + +# clean up popd + set -e diff --git a/content/pages/projects.rst b/content/pages/projects.rst @@ -9,15 +9,12 @@ Projects Active ====== -Chaintools ----------- - -This is a collection of three python3 blockchain libraries - chainlib_, chainsyncer_ and chainqueue_. Chainlib provides tooling for encodings for Solidity-EVM and Ethereum node networks. Chainqueue facilitates bulk send of transactions. Chainsyncer processes all transactions in mined blocks, and executes pluggable code for each of them. +Chaintools_ +----------- -`Crypto Dev Signer`_ --------------------- +This is a collection of three python3 blockchain libraries - chainlib_, chainsyncer_ and chainqueue_. Chainlib provides tooling for encodings for Solidity-EVM and Ethereum node networks. Chainqueue facilitates bulk send of transactions. Chainsyncer processes all transactions in mined blocks, and executes pluggable code for each of them. -Provides a daemon for use in development that performs Ethereum signatures over its standard JSON-RPC, along with a keystore with memory or sql backends. It also contains a cli tool to create and parse keystore files. +It also provides `Crypto Dev Signer`_, a daemon for use in development that performs Ethereum signatures over its standard JSON-RPC, along with a keystore with memory or sql backends. It also contains a cli tool to create and parse keystore files. Taint_ ------ @@ -34,20 +31,22 @@ Ecuth_ Leverages the `HTTP HOBA challenge-response authentication scheme`_ to authenticate with PGP_ and Ethereum_ wallets. It is supported by the dependencies `python-http-hoba-auth`_ and `python-yaml-acl`_, which provide parsing of HOBA authorization strings and a simple YAML-based ACL structure respectively. -w2625 ------ +.. + Promisc + ------- -Performs parallell lookups over a collection of web2 and/or web3 sources for an asset. Primarily designed to be a intermediate stop for projects that wish to integrate with web3, but cannot risk to fully rely on its lack of stability. + Performs parallell lookups over a collection of web2 and/or web3 sources for an asset. Primarily designed to be a intermediate stop for projects that wish to integrate with web3, but cannot risk to fully rely on its lack of stability. librlp_ ------- A small implementation of the Recursive Length Prefix serialization format in C. A python interface pylibrlp_ is also provided. -libswarm --------- +.. + libswarm + -------- -A small implementation of the BMT, Swarmhash and Single-Owner Chunk hashers and chunkers used in the `Swarm Network`_. Written in C. + A small implementation of the BMT, Swarmhash and Single-Owner Chunk hashers and chunkers used in the `Swarm Network`_. Written in C. Logwarrior_ ----------- @@ -75,9 +74,6 @@ Gitrefresh_ Mirroring tool to migrate your git repositories between computers without copying objects, and update existing repositories from remotes recursively. Written in ``bash``. -Abandoned -========= - Simplesigner_ ------------- @@ -86,29 +82,34 @@ A library that aims to simplify mutually signing generic serializable items offl .. Project links + .. - .. _chainlib: https://gitlab.com/nolash/chainlib + .. _chaintools: https://gitlab.com/chaintools .. - .. _chainsyncer: https://gitlab.com/nolash/chainsyncer + .. _chainlib: https://gitlab.com/chaintools/chainlib .. - .. _chainqueue: https://gitlab.com/nolash/chainqueue + .. _chainsyncer: https://gitlab.com/chaintools/chainsyncer .. - .. _Taint: https://gitlab.com/nolash/taint + .. _chainqueue: https://gitlab.com/chaintools/chainqueue .. - .. _Eth Statsyncer: https://gitlab.com/nolash/eth-stat-syncer + .. _Crypto Dev Signer: https://gitlab.com/chaintools/crypto-dev-signer .. - .. _Crypto Dev Signer: https://gitlab.com/nolash/crypto-dev-signer + .. _Taint: https://gitlab.com/nolash/taint + +.. + + .. _Eth Statsyncer: https://gitlab.com/nolash/eth-stat-syncer .. diff --git a/lash/static/css/style.css b/lash/static/css/style.css @@ -120,6 +120,7 @@ a.category { footer.body { padding-top: 2em; font-size: 0.8em; + padding-bottom: 3em; } footer address#about { @@ -164,4 +165,8 @@ div#keys dd tt { +/* custom: pages */ +#at-the-mercy-of-others dt { + text-transform: uppercase; +}