Securely Deploy Static Website via Rsync with Configuration
Automate the deployment of a static website to a remote server using rsync, including secure SSH key authentication and configurable paths for web developers.
Curated list of production-ready BASH scripts and coding solutions.
Automate the deployment of a static website to a remote server using rsync, including secure SSH key authentication and configurable paths for web developers.
Create a robust Bash script to repeatedly check if a specific TCP port on a host is open, useful for ensuring service dependencies are ready in CI/CD pipelines.
Learn to parse short command-line options and their arguments in Bash using `getopts`, enabling more powerful and user-friendly script interactions for developers.
Implement a robust Bash script to gracefully stop, start, and restart a service using a PID file, including a basic HTTP health check for reliability in deployments.
Locate and list the largest files within a specified directory, including subdirectories, sorted by size, useful for disk space management and web asset optimization.
A Bash script to source and export variables from a .env file, making environment-specific configurations accessible in your shell or for specific commands.
A robust Bash script to perform a health check on a given URL, reporting its HTTP status code and response time, essential for monitoring web services.
Automate the renaming of multiple files in a directory using Bash. This script allows you to add prefixes, suffixes, or replace substrings in filenames.
Analyze web server access logs using Bash to identify unique visitor IP addresses, count their requests, and gain insights into traffic patterns and potential security issues.
A Bash script to easily start and stop a Node.js development server (e.g., Express, React app) using its process ID, streamlining local development workflows.
Streamline your development workflow by automating 'git pull' across all your Git repositories within a specified directory to keep them up-to-date.
Create a robust bash script for scheduled backups of your website files and MySQL or PostgreSQL databases, ensuring data safety and quick recovery.