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
SHELL:= /usr/bin/env bash | |
PYVER:= 3.13 | |
venv:= .venv | |
vb:= $(venv)/bin | |
nm:= $(venv)/lib/node_modules | |
HERE:=$(notdir $(CURDIR)) | |
# Bootstraps Node.js inside a local Python virtual environment. | |
$(vb)/npm: $(vb)/nodeenv |
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 | |
# | |
# Simple non-POSIX UV installer. | |
# | |
# optional | |
#DEBUG=yep | |
main() { | |
chk_deps |
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 -S uv run --verbose --script --managed-python --python=3.13 | |
""" | |
USPSA Ammunition List Scraper | |
This script downloads the USPSA Certified Ammunition webpage, parses ammunition | |
entries including manufacturer, caliber, velocity, and bullet weight, and saves | |
them as CSV files. It also separates data into per-caliber files, including | |
Major-classified and PCC ammunition. | |
Debugging prints are included to help validate parsed content. |
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 | |
# | |
# Copy a GitLab repo to GitHub, keeping only the default branch. | |
# | |
set -x | |
set -euo pipefail | |
GL_SITE=https://gitlab.flux.utah.edu | |
#GL_OWNER=emulab | |
#REPO=geni-lib |
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 | |
# | |
# Bootstrap a Python project from scratch. | |
# | |
# optional | |
# DEBUG=yep | |
# VERBOSE=--verbose | |
# mandatory |
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 | |
# | |
# Move all items from one GitHub Project to another. | |
# | |
# edit these as needed | |
OWNER=example | |
SRC_PROJ_NUM=1 | |
DST_PROJ_NUM=2 |
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 | |
# | |
# Wrapper around Synology_HDD_db. | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
PS4func() { | |
local lineno="$1" | |
local i f='' |
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 | |
# | |
# Standardized install of iperf. | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
PS4func() { | |
local lineno="$1" | |
local i f='' |
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
.env* |
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 | |
# | |
# Recreate a git repo from a bunch of PyPI releases. | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
#set -o xtrace | |
PACKAGE=arcgis |
NewerOlder