Load Environment Variables from File
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.
Curated list of production-ready BASH scripts and coding solutions.
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.
Automate the secure deployment of a static website or build artifacts to a remote server using SCP, ideal for simple CI/CD pipelines.
Efficiently synchronize local files to a remote server over SSH. This snippet uses rsync for fast, reliable web deployment and secure, incremental backups.
Create a robust bash script to check if a critical web service is running and automatically restart it if inactive, ensuring continuous operation and availability.
Quickly parse Nginx access logs using bash, grep, and awk. Identify 4xx/5xx errors or specific request patterns, crucial for website debugging and performance monitoring.
Automate daily or weekly backups of a specified directory using tar and gzip. Implement a smart rotation strategy to keep only a set number of recent backups.