#automation

15 snippets tagged with #automation

typescriptbeginner

Node.js Cron Job Scheduler

Schedule recurring tasks with node-cron using crontab syntax and timezone support.

Best for: Database cleanup tasks

#cron#scheduler
typescriptintermediate

Node.js Recursive File Watcher

Watch files and directories for changes with debouncing and glob pattern filtering.

Best for: Custom hot-reload during development

#nodejs#file-system
pythonbeginner

Python CLI Tool with Argparse

Build a command-line tool with subcommands, arguments, validation, and help text using argparse.

Best for: Building developer tooling CLIs

#python#cli
pythonintermediate

AutoML with FLAML for Fast Tuning

Run automated machine learning with FLAML to find the best model and hyperparameters efficiently.

Best for: automated ML

#automl#flaml
bashintermediate

GitHub Actions CI/CD Pipeline

Complete GitHub Actions workflow with test, build, and deploy stages for a Node.js application.

Best for: Automated testing and deployment on push

#github-actions#ci-cd
bashbeginner

Linux Cron Job Setup Examples

Common crontab entries for database backups, log cleanup, health checks, and certificate renewal.

Best for: Automated database backups

#cron#linux
bashadvanced

Ansible Playbook for Server Setup

Ansible playbook to provision a web server with Nginx, Node.js, and firewall configuration.

Best for: Automated server provisioning across environments

#ansible#automation
bashintermediate

Database Backup Script with Rotation

Automated PostgreSQL backup script with compression, rotation, and optional S3 upload.

Best for: Automated nightly database backups

#backup#postgres
bashintermediate

Makefile for DevOps Automation

Makefile with common DevOps targets for building, testing, deploying, and managing Docker containers.

Best for: Standardizing developer commands across teams

#makefile#automation
bashintermediate

Log Rotation Management Script

Automate log rotation with compression, retention policies, and disk space monitoring in Bash.

Best for: Preventing disk space exhaustion from logs

#bash#devops
bashintermediate

Bash Parallel Jobs — Run Tasks Concurrently

Execute multiple shell commands in parallel with job control, exit code checking, and max concurrency.

Best for: Running CI checks in parallel for faster builds

#bash#parallel
bashintermediate

Git Hooks Pre-Commit Example

Git pre-commit and commit-msg hooks to enforce linting, tests, and commit message conventions.

Best for: Enforcing code quality before commits

#git#hooks
bashintermediate

Git Hooks — Pre-Commit Lint and Format

Set up pre-commit hooks to automatically lint, format, and validate code before every commit.

Best for: Enforcing code quality before commits

#git#hooks
pythonadvanced

Python ETL Pipeline Example

Complete extract-transform-load pipeline with error handling, logging, and incremental processing.

Best for: Automating data ingestion from CSV to warehouse

#etl#pipeline
bashintermediate

Bash ETL Pipeline Script

Build a complete ETL script in Bash with logging, error handling, notifications, and idempotent runs.

Best for: Automating daily data extract and load jobs

#bash#etl