Automate Daily Log Archiving and Cleanup
A Bash script to automatically compress and archive old application logs, then delete files older than a specified duration to manage disk space efficiently.
Curated list of production-ready BASH scripts and coding solutions.
A Bash script to automatically compress and archive old application logs, then delete files older than a specified duration to manage disk space efficiently.
A Bash script to parse Nginx or Apache access logs, extract the source IP addresses, and list the top N most frequent IPs.
A simple Bash script to identify and terminate any process currently listening on a specified TCP port, resolving port conflicts efficiently.
Quickly set up a new web development project by cloning a Git repository and creating standard subdirectories for assets, config, or logs.
Use Bash to download a gzipped tar archive from a given URL and extract its contents into a specified local target directory.
A Bash script to automate web application deployments. It pulls the latest code, installs dependencies, and restarts your service efficiently.
Master 'jq' for command-line JSON processing. Extract values, filter arrays, and format API responses or config files directly in your terminal.
Learn to securely run commands on remote servers using SSH. Execute single commands, multi-line scripts, and pass arguments for server management.
Create a simple Bash script to check the availability and HTTP status code of a web service or API endpoint using `curl`, crucial for monitoring.
Use `nohup` and `&` to run long-running commands or services in the background, ensuring they continue even after logging out.
Safely find and replace a specific string across multiple files within a directory, with an optional backup, using `find` and `sed` commands for web project refactoring.
Safely restart or reload common web services like Nginx, Apache, or PHP-FPM after configuration changes, including a syntax check before reloading to prevent downtime.