Warning: This is a tl:dr; YYMV, RTFM, use at your own risk etc.
- Ubuntu 24.04
- Tailscale installed with MagicDNS and HTTPS enabled.
#!/usr/bin/env bash | |
# GitHub Actions output and summary helpers | |
# Version: 2.0.0 | |
# Source common functions if not already loaded | |
if [[ -z "${SCRIPT_DIR:-}" ]]; then | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
fi | |
# Source common.sh if functions not available |
A powerful bash script that uses Claude CLI to automatically improve generic or poorly written git commit messages. It analyses your code changes and suggests more descriptive, conventional commit messages.
#!/usr/bin/env zsh | |
# Rectangle Pro Layout Cycler | |
# This script cycles through predefined Rectangle Pro window manager layouts. | |
# It supports multiple layout groups and maintains state between invocations. | |
# It uses `open -g "rectangle-pro://execute-layout?name=<<layout>>` to activate Layouts. | |
# | |
# Edit the layout_groups variable to suit your needs and then use a 3rd party tool map | |
# a key command to invoke the script. (I am using Alfred, but there are loads of options | |
# like skhd, hammerspoon, Keyboard Maestro and more I am sure |
#!/usr/bin/env bash | |
# A 'theme' generator for dircolors, tested on macOS Sequoia 15.1 and bash 5, should work elsewhere by YMMV | |
# On macOS you will need gdirecolors and a modern bash, installed via brew | |
# | |
# brew install coreutils | |
# brew install bash | |
# | |
# Adjust the colors below and run ./dircolors.sh > ~/.dircolors to create a dircolors 'theme' | |
# in your .zshrc (probably .bashrc too) you can eval this file (also export CLICOLOR=1) | |
# |
This guide assumes you already have a basic Ubuntu 24.04 VM running on Proxmox. If not, you should set that up first. The VM can be fairly minimal; for example, 8GB of storage and 1GB of RAM should suffice.
It also assumes you have a USB Storage device that you want to use for Time Machine backups
Mapping a USB drive via the Proxmox GUI is quick and easy, but the performance may be suboptimal because the driver is emulated. For better performance, it's recommended to use the virtio
driver, which is paravirtualized. Paravirtualization allows the guest VM to interact more directly with the hardware, improving I/O performance compared to emulated devices.
#!/bin/bash | |
# Default values | |
USER_TO_CREATE=$(whoami) | |
IDENTITY_FILE="$HOME/.ssh/id_rsa" | |
FORCE=false | |
# Function to print usage | |
usage() { | |
echo "Usage: $0 [-u|--user <username>] [-I|--identity <identity_file>] [--force] <hostname_or_ip>" |
This bash script allows you to run PowerShell commands and scripts in an x64 environment using Docker. It's particularly useful for those using Apple Silicon (or other ARM based systems) who need to run x64-only PowerShell tools.
[user] | |
name = withakay | |
email = [email protected] | |
[core] | |
excludesfile = ~/.gitignore_global | |
editor = vim | |
[push] | |
default = current | |
autoSetupRemote = true | |
followTags = true |
#!/bin/bash | |
# Setup: | |
# Assuming you don't alread have a global githooks dir | |
# | |
# mkdir -p ~/.githooks/ | |
# | |
# Save this script to the above path. | |
# Make a shell script called `pre-commit` in the above path (touch ~/.githooks/pre-commit). | |
# Edit pre-commit script sp it calls this script from it e.g. |