Skip to content

ropean/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

71 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Scripts Collection

A curated collection of production-ready scripts for modern development workflows

License: MIT Documentation

πŸ“– About

Practical, documented scripts that solve real-world development problems. Each script follows a standardized format with metadata headers, inline comments, and usage examples.

🌐 Documentation

Browse the complete collection with syntax highlighting, search, and categorization:

  • πŸš€ Primary: scripts.aceapp.dev
  • ⚑ Mirror: Cloudflare Pages (faster global access)

πŸ“‚ Scripts

🎨 Javascript

Script Description
intercept-requests.js Intercepts and redirects Decap CMS authentication requests to local development server
react-select-auto-selector.js Automatically selects options in React Select dropdowns with priority for "Edit" options

βš™οΈ Node.js

Script Description
local-proxy.js Proxy server for Decap CMS with Hugo, handling local authentication

πŸ”§ Git

Script Description
git-change-all-authors.sh Standardize author information across ALL commits in a repository
git-change-all-authors-fast.sh High-performance author standardization for large repositories
git-change-commit.sh Modify author/message for ONE specific commit in Git history
git-change-pr-authors.sh Modify author and committer information for commits in a PR branch
git-lfs-config-generator.sh Generate smart .gitattributes configuration for Git LFS based on file sizes
git-squash-to-single-commit.sh Create a fresh repository with a single commit, preserving current state
git-submodules.sh Complete toolkit for managing Git submodules with bulk operations

⚑ Serverless

Script Description
cloudflare-setup.js Automated setup tool for Cloudflare Workers resources (KV, R2, D1, Secrets)

πŸ—„οΈ Database

Script Description
setup-supabase-db.sh Interactive script to create a dedicated database and user in Supabase PostgreSQL

🐍 Python

Script Description
git-clean-ignored.py Scan a directory for Git repos and clean all gitignored files, safely
git-lfs-auto.py Scan a directory for large files and register them with Git LFS
git-status-all.py Check Git status for every repository under a root directory

πŸ”‘ Utilities

Script Description
chmod.sh Recursively set execute permissions for all shell scripts

πŸš€ Quick Start

Local Development

# Clone the repository
git clone https://github.com/ropean/scripts.git
cd scripts

# Install dependencies
pnpm install

# Generate documentation
pnpm run generate

# Start development server
pnpm dev

# Build for production
pnpm build

Requires: pnpm β€” install with npm install -g pnpm

✍️ Contributing Scripts

1. Place Your Script

Put it in the matching category under script-files/:

script-files/
β”œβ”€β”€ javascript/   # Browser & UI scripts
β”œβ”€β”€ nodejs/       # Server-side & Node.js tools
β”œβ”€β”€ git/          # Version control automation
β”œβ”€β”€ serverless/   # Cloudflare Workers, AWS Lambda, etc.
β”œβ”€β”€ database/     # DB utilities and SQL scripts
└── python/       # Python automation & utilities

Create a new directory if none of the above fit, then add a .config.js alongside it:

module.exports = {
  title: "Category Title",
  description: "Brief description of this category",
  icon: "🎯",
  order: 70, // controls display order
};

2. Add a Metadata Header

JavaScript / Node.js:

/**
 * @title Your Script Title
 * @description Brief one-line description
 * @version 1.0.0
 * @author Your Name
 *
 * Detailed explanation of what this script does and when to use it.
 *
 * @example
 * node your-script.js
 *
 * @requires dependency1, dependency2
 * @note Important notes or warnings
 */

Shell / Bash:

#!/bin/bash
# @title Your Script Title
# @description Brief one-line description
# @version 1.0.0
# @author Your Name
#
# @example
# ./your-script.sh

Python:

#!/usr/bin/env python3
"""
@title Your Script Title
@description Brief one-line description
@version 1.0.0
@author Your Name

@example
python your-script.py
"""

See Script Format Specification for the full reference.

3. Generate & Verify

pnpm run generate   # rebuilds docs, sidebar, nav, and homepage
pnpm dev            # preview locally

4. Submit

git add script-files/<category>/your-script.*
git commit -m "Add: brief description"
# open a pull request targeting the release branch

πŸ—οΈ Project Structure

scripts/
β”œβ”€β”€ script-files/             # All scripts, organized by category
β”‚   β”œβ”€β”€ javascript/
β”‚   β”œβ”€β”€ nodejs/
β”‚   β”œβ”€β”€ git/
β”‚   β”œβ”€β”€ serverless/
β”‚   β”œβ”€β”€ database/
β”‚   └── python/
β”œβ”€β”€ md-files/                 # Hand-written documentation pages
β”œβ”€β”€ docs/                     # VitePress site (auto-generated)
β”‚   β”œβ”€β”€ .vitepress/
β”‚   β”‚   β”œβ”€β”€ config.mjs        # Site configuration
β”‚   β”‚   β”œβ”€β”€ sidebar.json      # Auto-generated sidebar
β”‚   β”‚   └── nav.json          # Auto-generated navigation
β”‚   β”œβ”€β”€ index.md              # Homepage (auto-generated features)
β”‚   └── public/
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ generate-docs.js      # Main doc generator
β”‚   β”œβ”€β”€ generate-features.js  # Feature flags generator
β”‚   └── generate-robots.mjs   # robots.txt generator
└── .github/workflows/        # CI/CD pipelines

πŸ”§ Documentation System

pnpm run generate does everything automatically:

  1. Scans all script-files/ category directories
  2. Extracts @tags metadata from each script header
  3. Generates individual markdown pages per script
  4. Rebuilds sidebar, navigation, and homepage features to match current categories
  5. Sorts all navigation by the order field in .config.js

🌍 Deployment

Target Branch URL
GitHub Pages release scripts.aceapp.dev
Cloudflare Pages release Mirror (faster global CDN)

Both run automatically via GitHub Actions on push to release.

πŸ“„ License

MIT β€” see LICENSE for details.


Made with ❀️ by ropean | Sharing excellence in code, one script at a time

About

A curated collection of production-ready scripts and code examples for modern web development

Topics

Resources

Stars

Watchers

Forks

Contributors