Join the "Lobby" group with the link above to initiate contact.
#!/usr/bin/env python3 | |
import datetime | |
import os | |
# import wmi | |
# https://github.com/tjguk/wmi | |
# https://github.com/tcely/wmi | |
class LastBoot: |
#!/usr/bin/env python3 | |
import hashlib | |
import io | |
import os | |
import pathlib | |
import sys | |
def sum_file(hasher, file_path): |
Any GitHub user account can contain GPG keys used for signed commits.
To verify these signatures, your local gpg.program
needs the public key.
To fetch them, just use a URL such as this:
https://github.com/<ACCOUNT>.gpg
url_decode() { | |
local arg ; | |
if [ $# -gt 0 ]; then | |
for arg; do | |
printf -- '%s\n' "${arg}" ; | |
done | url_decode ; | |
else | |
check_printf ; | |
printf -- '%b\n' "$(sed -E -e 's/\+/ /g' -e 's/%([0-9a-fA-F]{2})/\\x\1/g')" ; | |
fi ; |
# Add this to the ~/.ssh/config file | |
# | |
Match Exec "ssh-rsa-needed.sh '%n' '%C' '%l' '%h' '%p' '%r'" | |
PubkeyAcceptedKeyTypes +ssh-rsa |
if [ "${BASH_VERSION-}" ]; then | |
# Local variables the functions depend upon | |
_bash_history_prefix=~/.local/history/bash | |
# {{{ Begining of the temporary functions block | |
_bash_history_get_today() { | |
date '+%Y/0%m/%d' | |
} |
#!/usr/bin/env sh | |
secho() { | |
_arg="${1}"; | |
_fmt='%s'; | |
_sentinel='--'; | |
case "${_arg}" in | |
(-e|-en|-ne) _fmt='%b'; shift ;; | |
(-n|-En|-nE) shift ;; |
-
"Optimize for the inexperience newcomers rather than the experience gurus." As explained in this post there are a few quirks when dealing with shell variables that do not use the curly braces. For example:
$pkgver
Instead of expecting new contributors to already know about all of the pitfalls involved with using that syntactic sugar, it is better to just always use the braces. Shell variables are quoted when assigned and used, when accessed they are quoted and surrounded by curly braces. For example:
pkgname='bind'
orpkgdesc="${pkgname} tools"
and"${pkgname}"
The characters that do and do not extend the name of the variable are not a concern when the intention of what the variable name should be is made clear by using this explicit syntax. Users don't need to remember which of _
, -
, or .
will change the variable name and lead to an empty value be