Quick Local HTTP Server for Static Files
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.
Curated list of production-ready BASH scripts and coding solutions.
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.
Learn to prompt users for input in Bash scripts, including basic validation for non-empty strings or numeric values, making your scripts more interactive.
Discover how to efficiently search for patterns within file content using `grep` and perform more advanced text processing, filtering, and data extraction with `awk` in Bash.
Learn how to safely create unique temporary files and directories using `mktemp` in Bash scripts, ensuring isolation and preventing naming conflicts for transient data storage.
Optimize Bash script execution by running multiple independent commands concurrently in the background using `&`, then wait for all of them to complete using the `wait` command.