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
gh repo list --limit 1000 | while read -r repo _; do | |
gh repo clone "$repo" "$repo" -- -q 2>/dev/null || ( | |
cd "$repo" | |
git fetch --all | |
git lfs fetch --all | |
git pull -q | |
) | |
done |
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 | |
# change-git-remote.sh | |
# Robust version: does NOT exit the whole script on single command failures. | |
# Features: set|add|replace remotes, optional push with GH repo create, dry-run, debug, logging. | |
# NOTE: This script intentionally does NOT use `set -e` so it won't abort on single-command failures. | |
set -uo pipefail | |
PARENT_DIR="." | |
MODE="" |
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
import antfu from '@antfu/eslint-config' | |
import { type } from 'os' | |
export default antfu({ | |
type: "app", | |
typescript: true, | |
formatters: true, | |
react: true, | |
stylistic: { | |
indent: 2, |