sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| files: | |
| "/etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf": | |
| mode: "000755" | |
| owner: root | |
| group: root | |
| content: | | |
| server { | |
| listen 80; | |
| gzip on; |
| echo "instance id: $1" | |
| echo "instance type: $2" | |
| #2>&1 > /dev/null to suppress the cli output | |
| echo "stopping instance" | |
| aws ec2 stop-instances --instance-ids $1 2>&1 > /dev/null | |
| echo "waiting for instance to stop" | |
| aws ec2 wait instance-stopped --instance-ids $1 |
| wget https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz | |
| tar xvzf node_exporter-*.tar.gz | |
| mv node_exporter-*/node_exporter /usr/local/bin/ | |
| # Create a node_exporter user | |
| useradd --no-create-home --shell /bin/false node_exporter | |
| # Set the ownership of the node_exporter binary to the node_exporter user |
A one-command internet disconnect monitor. It runs SmokePing in Docker and graphs your connection to Google, Cloudflare, and Quad9 (plus your LAN gateway, if detectable) every 60 seconds.
The graphs tell you when your internet dropped and how long it was out — the "smoke" bands show latency jitter and packet loss, and flat gaps mark full outages. The dashboard is bound to localhost only, so it's private by default.
Works on Linux and macOS. The only requirement is Docker.