TODO: Remember the stuff that drove me nuts as a noob...
These tactics shouldn't be employed in production.
Redirect operations are quite involved. Here are a few of the highlights:
| #!/usr/bin/env bash | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # PW Material Generator | |
| # Notes: | |
| # - Used by genpass | |
| # - Generates 20 characters per invocation | |
| # - Takes ~1ms per character generated on an average | |
| # system | |
| # - Will _always_ lead with an ALPHA character | |
| # - Will _always_ include _at least one SPECIAL character |
| #!/usr/bin/env bash | |
| # Truecolor demo | |
| # Thanks to those who I've taken inspiration from. | |
| # My Adds: | |
| # - int bounding | |
| # - text overlay for single-line output with contextual hint | |
| __color_truecolor_demo() { | |
| local TXT FG COLUMN COLUMNS FILL_L FILL_R R G B | |
| TXT="This will be a smooth gradient if truecolor is supported." |
| #!/usr/bin/env bash | |
| # shellcheck disable=2183 | |
| # GIST NOTES | |
| # v1 is here: https://gist.github.com/AlexAtkinson/49078eb9a2dcff17b28371eb92964cca | |
| # Clean Test - run: | |
| # NOTE: The hash in the URL below should match this gist. <<< VERIFY THIS | |
| # docker run -e LANG="C.UTF-8" -e LC_ALL="C.UTF-8" -it debian /bin/bash | |
| # apt update && apt -y install curl |
| #!/usr/bin/env python | |
| # Copy into /usr/local/bin or as appropriate for your $PATH | |
| import argparse | |
| from pypdf import PdfReader | |
| from pypdf.errors import PdfReadError | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("pdf", help="The PDF to extract attachments from.", type=str) |
Character Sets/Ranges [] : Match any characters within. Required expression.
Qualifiers {} : Quantity or range of an expression. IE: {3}, {2,200}
Groups () : Group expressions. Subgroups supported.
Non-Capturing Group (?:foo) : Does not "remember" matches. Lower overhead.
Kleen Star * : May occur 0 or more times.
🗒️ An excerpt from my good, ol' Jira Team Runbook.
Acceptance Criteria tactices are ever evolving, but this is a good skeleton to start from.