Parser for GPG search-key output

Published on Tue Mar 01 2022

Record the output of the batch `gpg --search-keys` commands into variables. For example, get the public key ids or those with `*.amazon.com` email addresses: pubkeyids=$(gpg --batch --keyserver hkp://keyserver.ubuntu.com --search-keys amazon.com 2>&1 | grep -Po '\d+\s*bit\s*\S+\s*key\s*[^,]+' | cut -d' ' -f5) We can automate searching for keys and adding them to the keyring using `bash` parsing that output. As an illustration, I created [the following GitHub gist][1] to host the code below. [1]: https://gist.github.com/mavaddat/a81627ec4680ef5d6c30a9ebdc412037

Additional matching regexes for
Parser for GPG search-key output

Parser for GPG search-key output

Record the output of the batch `gpg --search-keys` commands into variables. For example, get the public key ids or those with `*.amazon.com` email addresses: pubkeyids=$(gpg --batch --keyserver hkp://keyserver.ubuntu.com --search-keys amazon.com 2>&1 | grep -Po '\d+\s*bit\s*\S+\s*key\s*[^,]+' | cut -d' ' -f5) We can automate searching for keys and adding them to the keyring using `bash` parsing that output. As an illustration, I created [the following GitHub gist][1] to host the code below. [1]: https://gist.github.com/mavaddat/a81627ec4680ef5d6c30a9ebdc412037

Epic EHR Sticker QR code patient information

Text output produced by reading the QR code present on patient stickers created by Epic (R) medical record software

Github URI Validator

Validate Github URI

Find PHP-like variables

Search a string for PHP-like variables starting with $, containing an unlimited number of non-whitespace characters and ending with a word boundary of any kind

Command handling

Handles commands like in CMD

Extract domain from URL

'www.**xakep**.ru' === xakep 'http://**github**.com/carbonfive/raygun' === github 'https://www.**cnet**.com' === cnet '**xewveqmwcz90sl64**.co/' === xewveqmwcz90sl64

Regex Record SSH

Regex Record for Data from SSH scripting

Add rgb for colour variables

Add rgb for colour variables

ip/host:port parser (proxy lists)

simple ip:port or host:port parser capturing ip or host and port, usually used for proxy lists

BinarSkugga's Language Variable Parser

Detect and cut lines containing variables.