Skip to content

Instantly share code, notes, and snippets.

View SaasyKumar's full-sized avatar
🎯
Focusing

Sasi Kumar SaasyKumar

🎯
Focusing
View GitHub Profile
@SaasyKumar
SaasyKumar / org2dev.sh
Last active November 3, 2025 12:26
Sync files between original repo and development repo. If you use two repos one to maintain clean commit and changes, another for development. This will help you to sync those repo and helps you to avoid accidental syncing from different repo branch.
CURRENT_DIR=$(pwd)
SRC_DIR="$HOME/" #TODO:original repo directory use $HOME instead of ~ to avoid error
DST_DIR="$CURRENT_DIR/" #TODO:dev setup directory
CP_ARRAY=("javascript/" "style/" "outterfile.js") #TODO:only folders or files need to be copied or if need to copy entire folder use ("")
#FYI the whole code only copies files having same name in both src and dst
Color_Off=$'\033[0m' # Text Reset
Red=$'\033[0;31m' # Red
Cyan=$'\033[0;36m' # Cyan
@SaasyKumar
SaasyKumar / ghrepoclone.sh
Last active November 3, 2025 12:25
GitHub Repository Bulk Clone Tool - A bash script that helps you selectively clone multiple repositories from a GitHub user's account.✅ Three cloning options: 1. Select specific repositories to clone 2. Select repositories to exclude from cloning 3. Clone all repositories
#!/bin/bash
username=$1
if [ -z "$username" ]; then
read -r -p "Enter GitHub Username: " username
fi
echo "Getting Repos from $username ..."
private=0
get_private="n"