Automate Cleanup of Project Directories
Efficiently clean up common project artifacts like `node_modules`, `dist`, `build`, and `vendor` directories across multiple subdirectories to free up disk space.
Curated list of production-ready BASH scripts and coding solutions.
Efficiently clean up common project artifacts like `node_modules`, `dist`, `build`, and `vendor` directories across multiple subdirectories to free up disk space.
Automate the deletion of local Git branches that have already been merged into your main development branch, helping to keep your repository clean and manageable.
Continuously monitor a specified log file for the occurrence of error messages or custom keywords, providing real-time alerts for debugging and system health checks.
Create timestamped tar.gz backups of important configuration files or directories, ensuring you have a restore point before making system-level changes.
Launch a temporary local HTTP server using Python's http.server module to serve static files from your current directory, perfect for front-end development.
Create a bash script to automate website deployment by pulling the latest code from Git and restarting a configured web service or application process.
Dynamically load environment variables from different .env files (e.g., .env.development, .env.production) using bash for consistent configuration across environments.
Implement a bash script to automatically rotate, compress, and archive web server or application log files, optimizing disk usage and simplifying log management.
Learn to automate database backups for MySQL/MariaDB using 'mysqldump', compressing the output with 'gzip' and timestamping files for robust data preservation.
Monitor SSL/TLS certificate expirations for your domains with Bash. This script checks certificate validity and sends email notifications if they are nearing expiry.
Parse INI-style configuration files in Bash to load key-value pairs into script variables, supporting sections, comments, and dynamic configuration loading.
Automate static website deployments with 'rsync', using powerful features like file exclusions, deletion of old files, and a 'dry run' mode for safe synchronization.