Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Quick script to sync all my forks on GitHub up-to-date with the parent repo
# Assumes I never commit to the main branch, which I try to avoid.
# Runs on cron, so only outputs with errors.
USER=$(gh api '/user' | jq -r .login)
REPOS=$(gh api "users/$USER/repos?type=owner&per_page=100" | jq -r '.[] | select( ( .fork == true ) and ( .disabled == false ) and ( .archived == false ) ) | .full_name + " " +.default_branch' )
while IFS= read -r line; do
@dd32
dd32 / svn-ci-partial
Last active February 13, 2024 03:54
svn ci --partial
#!/bin/bash
# SVN ci partial support
#
# This script can be enabled with a `svn()` wrapper defined in your profile.
#
# Props need to go to authors who have attempted this in the past, particularly to
# Karljohan Lundin Palmerius for his work with using kompare:
# https://www.itn.liu.se/~karlu20/div/blog/2013-05-31_SVNPartialCommit.php
#