Codified PC Setup.
source <(curl -s https://gist.githubusercontent.com/AlexAtkinson/27b12f4dfda31b1b74fcab3fc9a6d192/raw/init.sh)| #!/usr/bin/env bash | |
| # v2: https://gist.github.com/AlexAtkinson/99e7eb85fdc95b36a1978e4e7e8e92ac | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # 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 |
| #!/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.
| #!/bin/bash | |
| # ---------------------------------------------------------------------- | |
| # /root/build_mesos-slave.sh | |
| # mesos-master auto-build | |
| # | |
| # ---------------------------------------------------------------------- | |
| # Variables | |
| # ---------------------------------------------------------------------- | |
| user="root" | |
| dir="/root" |
| #!/bin/bash | |
| # ---------------------------------------------------------------------- | |
| # /root/build_mesos-master.sh | |
| # mesos-master auto-build | |
| # | |
| # ---------------------------------------------------------------------- | |
| # Variables | |
| # ---------------------------------------------------------------------- | |
| user="root" | |
| dir="/root" |