Skip to content

Instantly share code, notes, and snippets.

View allen-woods's full-sized avatar
💡
Realtime = right time.

Allen Woods allen-woods

💡
Realtime = right time.
View GitHub Profile
@allen-woods
allen-woods / README.md
Last active December 24, 2020 00:43
Posix conformant support for synchronous data I/O in a named pipe.

Synchronous Data

All data written and read by these functions is formatted as a multi-line string inside the named pipe. Parsing of this data requires understanding of working with multi-line strings inside shell scripts.

In most cases, piping data to sed without the -i option should suffice.

Usage of pipe_w

$ pipe_w   [write-flag]
@allen-woods
allen-woods / init.sh
Last active November 30, 2020 09:15
Automate Vault Operator Init With PGP Keys
#!/bin/sh
# Tested on Vault 1.5.4 alpine.
# Related project: https://github.com/allen-woods/the-supertask
# Dependencies (apk add):
# - gnupg=2.2.19-r0
# - openssl=1.1.1g-r0
# - outils-jot=0.8-r1