Moto is a Python library that emulates AWS service APIs in-process for testing and local development. It intercepts boto3/botocore HTTP requests via a custom botocore stubber, dispatches them to per-service in-memory backends registered through a BackendDict pattern, and returns AWS-compatible responses. The library supports decorator/context-manager use, a standalone Flask-based server mode, and an HTTPS proxy mode, making it usable from Python tests, CI pipelines, and non-Python SDKs via a local endpoint.
This is a single-file Bash script that performs a comprehensive security and performance audit of a Linux VPS. It checks SSH configuration, firewall status, intrusion prevention systems (Fail2ban/CrowdSec), failed login attempts, system updates, running services, open ports, disk/memory/CPU usage, sudo logging, password policy, and SUID files. The script outputs color-coded PASS/WARN/FAIL results to the console and writes a detailed timestamped report to a file. It is designed for Ubuntu/Debian-based systems and requires root or sudo privileges. The architecture is a monolithic Bash script with no external dependencies beyond standard Linux utilities and optional tools like UFW, Fail2ban, and Docker. The code is well-structured with configurable thresholds and file paths, demonstrating solid Bash scripting practices. However, it is not designed for reuse as a library; it is a standalone tool.