This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Password Macropad - Unlock Windows workstations with obnoxious domain password requirements using only a PIN | |
""" | |
# Based on Scramblepad by Adafruit. The original license follows: | |
# | |
# | # SPDX-FileCopyrightText: 2021 Anne Barela for Adafruit Industries | |
# | # | |
# | # SPDX-License-Identifier: MIT | |
# | | |
# | """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// capslock.c - Andrew Shultzabarger (9 Jan 2025) | |
// | |
// Command-line utility to control/query the state of Caps-Lock in X11. | |
// | |
// To compile: | |
// gcc -g -Wall -std=gnu99 -o capslock -lX11 capslock.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# ------------------------------------------------------------------------------ | |
# | |
# prepath: prepend or remove elements in a delimited string list | |
# | |
# examples: | |
# | |
# #| this example demonstrates: | |
# #| - the default list delimiter is ":" | |
# #| - the variable to modify is given by name, not value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gpg2 --list-secret-keys --keyid-format short | |
/home/user/.gnupg/pubring.kbx | |
------------------------------- | |
sec rsa4096/53C2371D 2020-06-18 [SC] | |
47009EB0BA7E95211A217130D77BCDBD8340250A | |
uid [ultimate] User Name <[email protected]> | |
ssb rsa4096/53AF00DS 2020-06-18 [E] | |
ssb rsa4096/CA7F00DS 2021-02-18 [A] | |
# Notice I'm not using the primary key, but instead the first subkey with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ============================================================================== | |
# |# | |
# |# Example aliases with bash-completion support | |
# |# | |
# | |
#complete-alias sc systemctl # sc <tab> => systemctl <tab> | |
#complete-alias scs systemctl status # scs <tab> => systemctl status <tab> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/bash/bin/bash | |
if ghbin=$( type -P gh ); then | |
copilot="github/gh-copilot" | |
if "${ghbin}" extension list 2>&1 | cut -s -f2 | grep -q "^${copilot}$"; then | |
function ? { | |
[[ ${#} -gt 0 ]] || set -- --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
cat <<__usage__ | |
-- DESCRIPTION ----------------------------------------------------------------- | |
Insert a 'replace' directive into each given Go module (default: PWD) that | |
defines a local file path of a Go package to import instead of the published | |
package named in any of the given modules' import lists. |