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 python3 | |
| """ | |
| find_malformed_template_attrs.py | |
| Scans Go html/template (.html, .tpl, .tmpl) files for HTML attribute | |
| values that contain Go template actions ({{ ... }}) spanning multiple | |
| lines or wrapped in extraneous internal whitespace/newlines. This | |
| pattern renders as literal whitespace inside the quoted attribute | |
| value in the final HTML output, e.g.: |
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
| #requires -Version 5.1 | |
| <# | |
| .SYNOPSIS | |
| Concatenate files under a directory into a single text blob suitable | |
| for pasting into an LLM prompt. | |
| .DESCRIPTION | |
| Walks a directory tree, pruning a large default set of VCS metadata, | |
| build output, dependency, and cache directories (plus any the caller | |
| adds via -Exclude), and concatenates the surviving files into one |
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 | |
| # | |
| # genprompt.sh - Concatenate files under a directory into a single text | |
| # blob suitable for pasting into an LLM prompt, with configurable | |
| # extension filtering and a large default exclusion list for build | |
| # artifacts, VCS metadata, and dependency directories. | |
| # | |
| # Usage: | |
| # genprompt.sh [-o OUTPUT] [-x DIR1,DIR2,...] [-e EXT1,EXT2,...] | |
| # [-i] [-s SIZE_KB] [-n] [DIR] |
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 | |
| # Exit on error, undefined variables, and pipe failures | |
| set -euo pipefail | |
| POSTGRES_VERSION="18.0" | |
| ARCHIVE_NAME="postgresql-${POSTGRES_VERSION}.tar.gz" | |
| EXTRACT_DIR="postgresql-${POSTGRES_VERSION}" | |
| INSTALL_PREFIX="/opt/fil" |
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 -eux | |
| # This script builds a static version of poppler and its dependencies. | |
| # The script is based on the instructions and examples provided in the article: | |
| # https://fasterthanli.me/series/dont-shell-out/part-3 | |
| # Get the absolute path of the script. | |
| SCRIPT_PATH=$(readlink -f "$0") | |
| # Get the directory where the script is located. |
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
| # Install comprehensive firmware packages | |
| sudo pacman -S linux-firmware-marvell linux-firmware-qlogic linux-firmware-liquidio linux-firmware-bnx2x | |
| # For the console font warning | |
| sudo pacman -S terminus-font | |
| # Optional: Install AUR firmware packages for more complete coverage | |
| yay -S wd719x-firmware upd72020x-fw |
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
| { | |
| "C++ Header Guard with extern C": { | |
| "prefix": "guard", | |
| "body": [ | |
| "#ifndef ${1:${TM_FILENAME_BASE/(.*)/${1:/upcase}_H/}}", | |
| "#define ${1:${TM_FILENAME_BASE/(.*)/${1:/upcase}_H/}}", | |
| "", | |
| "#ifdef __cplusplus", | |
| "extern \"C\" {", | |
| "#endif", |
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/sh | |
| # | |
| # git-semver: A utility for managing semantic versioning with Git tags | |
| set -e | |
| VERSION="1.2.0" # Updated version to reflect the fix | |
| SCRIPT_NAME="git-semver" | |
| # Print usage information |
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 | |
| # Generate a self-signed certificate for specified hosts | |
| # and add it to the system keychain. | |
| # Requires: openssl, sudo | |
| set -euo pipefail | |
| # Configuration |
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
| InlayHints: | |
| ParameterNames: No | |
| DeducedTypes: No | |
| Diagnostics: | |
| UnusedIncludes: Strict | |
| ClangTidy: | |
| Add: [bugprone-*, cert-*, modernize-*, performance-*] | |
| Remove: [bugprone-easily-swappable-parameters, modernize-use-trailing-return-type, cert-err33-c, cert-err34-c] |
NewerOlder