← Back to Infrastructure Documentation

DevScripts

Infrastructure Automation Tools for linuxserver.lan

USER Human-invoked CLI commands (no extension)
Python Auto LLM/automation scripts
🐙
GitHub Repo
21+
Scripts
6
Categories
8
User Commands
📦 Git Management
gitinit USER
Initialize git repo on GitLab or GitHub. Creates remote repo and pushes initial commit.
gitinit -gitlab [group] | gitinit -github
gitpush USER
Git push helper with 3-attempt retry and exponential backoff. Supports single, current (.), or all projects.
gitpush <project|.|all> "message"
gitpull USER
Git pull helper. Supports GitLab/GitHub, handles new clones and existing repos.
gitpull <project|.|all> [-gitlab]
gitversion USER
Git version/tag helper. Creates patch, stable, or major version tags.
gitversion <project> [-stable|-major] "msg"
🛠️ User Utilities
mergecode USER
Merge code from multiple sources into a single project.
mergecode <source> <dest>
restorecode USER
Restore code from backups.
restorecode <project>
sharefile USER
Create temporary file sharing links.
sharefile <file>
glab USER
Official GitLab CLI (v1.77.0). Configured for gitlab.ai-servicers.com.
glab <command>
🔧 System Maintenance
healthcheck.sh Auto
System and Docker health monitoring. Checks containers, disk, memory, CPU. Analyzes recent log errors.
./healthcheck.sh
cleanserver.sh Auto
Docker cleanup and log rotation. Removes stopped containers, dangling images, old logs (90+ days).
./cleanserver.sh
updatelinux.sh Auto
System update automation. Updates Ubuntu packages and Docker components.
./updatelinux.sh
🤖 Claude Code Management
validate-claude-md.py Python
Validates structure and content of CLAUDE.md files across projects.
python3 validate-claude-md.py .
bulk-generate-claude.sh Auto
Auto-generates CLAUDE.md files for all projects missing one.
./bulk-generate-claude.sh
build-claude-index.py Python
Builds searchable JSON index of projects and documentation.
python3 build-claude-index.py
detect-patterns.py Python
Analyzes projects for infrastructure patterns (oauth2, db, monitoring).
python3 detect-patterns.py
💾 Backup & Maintenance
backup/backup-projects-data.sh Auto
Main backup script for ~/projects/data. Daily, weekly, and monthly retention.
./backup-projects-data.sh
backup/setup-backup-mount.sh Auto
One-time USB drive setup for backup storage.
sudo ./setup-backup-mount.sh
maintenance/cleanup-logs-and-ephemeral-data.sh Auto
Weekly cleanup of logs and ephemeral data. Supports --dry-run.
sudo ./cleanup-logs-and-ephemeral-data.sh
maintenance/setup-docker-log-rotation.sh Auto
One-time Docker daemon log rotation configuration.
sudo ./setup-docker-log-rotation.sh
🔍 Analysis Tools
find-project.py Python
Search for projects by name or pattern across the projects directory.
python3 find-project.py <pattern>
project-health-check.py Python
Assesses overall project health and completeness.
python3 project-health-check.py
cleanup-github-repos.sh Auto
Remove sensitive data from Git history while keeping local copies.
./cleanup-github-repos.sh