Skip to content

Instantly share code, notes, and snippets.

@Notten02
Notten02 / check_x_extends.sh
Last active January 30, 2026 17:14
Check x_extend capital issues
#!/bin/bash
# Usage: ./check_x_extends.sh [--fix] /path/to/Actions
FIX_FLAG=0
ACTIONS_DIR="."
# Parse arguments
while [[ $# -gt 0 ]]; do
case $1 in
--fix|-f)
@Notten02
Notten02 / cleanbranches.sh
Created November 23, 2022 09:23
oneliner to fetch and cleanup local branches that are gone from the server (if merged)
git fetch --progress "origin" --prune && git branch --merged | egrep -v "(^\*|master|main)" | xargs git branch -d