Automated Cleanup of Old Files by Age
Automate the cleanup of old log files, cache files, or temporary directories by deleting files older than a specified number of days, helping manage disk space on web servers.
Curated list of production-ready BASH scripts and coding solutions.
Automate the cleanup of old log files, cache files, or temporary directories by deleting files older than a specified number of days, helping manage disk space on web servers.
Ensure critical files or directories exist before script execution, creating them if necessary, to prevent errors in your web development workflows.
Script to monitor server disk space, alerting web developers when usage exceeds a defined percentage to prevent critical storage issues.
Automate renaming multiple files in a directory using a specified pattern or string replacement, perfect for organizing web assets.
Securely download files from a URL using `curl` or `wget`, display progress, and verify integrity with a checksum for reliable asset retrieval.
A bash script to parse key-value pairs from a file (like .env) and export them as environment variables, enabling flexible and secure application configuration management.
A bash script to monitor a specific application process by name and automatically restart it if it's found to be down, ensuring continuous service availability for web applications.
A bash script designed to perform a basic HTTP endpoint health check using curl, verifying the HTTP status code for robust service monitoring and quick issue detection in web apps.
A bash script to automate common Git operations like pulling latest changes, pushing committed code, and checking the repository status, simplifying development and deployment workflows.
A bash script to parse a simple key-value configuration file and extract the specific value for a given key, useful for dynamically reading application settings into other scripts.
Create a robust Bash script to automatically backup a specified directory, compressing it into a timestamped archive for easy versioning and recovery.
Automate common Nginx configuration changes using `sed` in Bash, such as updating server names or proxy passes, simplifying deployment tasks.