This file contains hidden or 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
#!/usr/bin/env bash | |
# This script extracts the locally-cached font files installed by | |
# Adobe Creative Cloud. | |
# | |
# The extracted fonts can then be used in other applications. | |
# | |
# See --help|-h for usage information. | |
usage() { |
This file contains hidden or 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 | |
# | |
# == SUMMARY =================================================================== | |
# | |
# This script is used to invoke a native Windows program (.exe) or batch script | |
# (.bat, .cmd, .com) — referred to as COMMAND below — as an Administrator. | |
# | |
# It is intended to be used from a WSL shell session, where the target program | |
# runs in the parent Windows environment with elevated privileges. | |
# |
This file contains hidden or 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 | |
No user account information is stored plain-text in the sources — | |
it is all AES encrypted and decrypted at runtime on-demand. | |
See secrets.py. | |
Each entry in secrets['accounts'] appears as a single row on the | |
Macropad. Pressing the key in the first column will simulate |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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. |