Skip to content

Instantly share code, notes, and snippets.

View notcoderguy's full-sized avatar
🎯
Focusing

Vasu Grover notcoderguy

🎯
Focusing
View GitHub Profile
@notcoderguy
notcoderguy / eslint.config.js
Created October 17, 2025 07:40
Default starter eslint config.
import antfu from '@antfu/eslint-config'
import { type } from 'os'
export default antfu({
type: "app",
typescript: true,
formatters: true,
react: true,
stylistic: {
indent: 2,
@notcoderguy
notcoderguy / change-git-remote.sh
Created October 16, 2025 15:59
Helps in moving repos from one org to another.
#!/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=""
@notcoderguy
notcoderguy / clone-all-repos.sh
Created October 16, 2025 15:58
clone all repos locally
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