Archive and Clean Old Log Files
Maintain server health and free up disk space by automatically archiving and removing old log files, ensuring efficient log management.
Curated list of production-ready BASH scripts and coding solutions.
Maintain server health and free up disk space by automatically archiving and removing old log files, ensuring efficient log management.
Perform quick and powerful text replacements across numerous files in your project using a single Bash command, ideal for refactoring or bulk updates.
Enhance your web application's security by configuring critical HTTP headers like HSTS, X-Frame-Options, X-Content-Type-Options, and CSP directly in your Nginx server block.
A bash script to automate pulling the latest code from a Git repository, installing dependencies, and building a web project on a remote server for deployments.
A bash script to archive web server log files with a timestamp, compress them, and optionally remove old archives to manage disk space on the server.
A bash script demonstrating how to parse and extract specific values from a JSON string or file using the powerful command-line JSON processor, 'jq'.
A bash script to create timestamped backups of individual files or entire directories, compressing them into `.tar.gz` archives for safe storage.
Quickly identify and terminate any process listening on a specific TCP port using `lsof` and `kill`, resolving common port conflicts during development.
Automate the creation of a common web project directory structure with subdirectories for `src`, `public`, `assets`, `dist`, and configuration files.
Simplify common Git workflows by automatically adding all changes, committing with a predefined message or a provided one, and pushing to the current branch.
Launch a basic HTTP server using Python's `http.server` or PHP's built-in server on a specified port, then automatically open the default web browser to that address.
Ensure your critical web services stay online with this bash script that periodically checks a service's status and automatically restarts it if it's found to be inactive.