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
# Share Python interpreters for all users | |
setx UV_PYTHON_INSTALL_DIR "C:\ProgramData\uv\python" /M # where interpreters live | |
setx UV_PYTHON_BIN_DIR "C:\ProgramData\uv\bin" /M # where shims/exes go | |
# Install uv | |
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" | |
# Install Python for all users | |
$env:UV_PYTHON_INSTALL_REGISTRY = '1' # register with Windows (PEP 514) | |
uv install python --default |
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 | |
# /// script | |
# requires-python = ">=3.8" | |
# dependencies = [ | |
# "boto3>=1.26.0", | |
# ] | |
# /// | |
""" | |
AWS ECR Authentication Script with MFA and Role Assumption Support | |
Authenticates to AWS ECR repository and configures Docker for pushing images |
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 | |
""" | |
install_exempi.py — build & install the latest Exempi from source. | |
- Finds the newest release tarball from libopenraw.freedesktop.org | |
- Ensures build deps (Boost, Expat, toolchain) via common package managers | |
- Configures with Boost hints, then make && make install | |
- Defaults to installing under: | |
macOS: $(brew --prefix) (e.g. /opt/homebrew) if Homebrew exists, else /usr/local | |
Linux: /usr/local |
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 sh | |
set -uo pipefail | |
# Base URL for Ookla Speedtest CLI | |
base_url="https://www.speedtest.net/apps/cli" | |
# Detect architecture and map to Ookla's naming | |
arch="$(uname -m)" | |
case "$arch" in | |
x86_64) osarch="x86_64" ;; |
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 | |
sudo mkdir -p /usr/libexec/docker/cli-plugins | |
sudo curl -SL \ | |
https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m) \ | |
-o /usr/libexec/docker/cli-plugins/docker-compose | |
sudo chmod +x /usr/libexec/docker/cli-plugins/docker-compose |
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 | |
set -e | |
set -o pipefail | |
get_arch() { | |
local uname_arch | |
uname_arch=$(uname -m) | |
case "$uname_arch" in | |
x86_64) | |
echo "amd64" |
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 | |
set -e | |
set -o pipefail | |
get_arch() { | |
local uname_arch | |
uname_arch=$(uname -m) | |
case "$uname_arch" in | |
x86_64) | |
echo "amd64" |
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 | |
# Set a quieter fan curve for the Raspberry Pi 5 | |
cat <<EOF >> /boot/firmware/config.txt | |
dtparam=fan_temp0=53000 # 53.0°C default: 50.0°C | |
dtparam=fan_temp1=62000 # 62.0°C default: 60.0°C | |
dtparam=fan_temp2=70000 # 70.0°C default: 67.5°C | |
dtparam=fan_temp3=78000 # 78.0°C default: 75.0°C | |
dtparam=fan_temp0_hyst=9000 # 9.0°C default: 5.0°C |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"NotAction": [ | |
"iam:*", | |
"organizations:*", | |
"account:*" | |
], |
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 | |
"""Clone all repos owned by an organization or user using the GitHub CLI (gh). | |
usage: gh-clone-all.py [-h] [--pattern PATTERN] owner [-- <gitflags>...] | |
""" | |
import argparse | |
import json | |
import re | |
import subprocess | |
from concurrent.futures import ThreadPoolExecutor |
NewerOlder