Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active June 17, 2024 07:04
The introduction to Reactive Programming you've been missing
@joeyimbasciano
joeyimbasciano / monit.myapp.conf
Created November 1, 2012 20:19
Monit configuration file to check HTTP service listening on port 9009 and recovery from DNS failures
check host appsrv1 with address 127.0.0.1
start program = "/sbin/start myapp"
stop program = "/sbin/stop myapp"
alert alerts@example.com on {timeout,connection}
if failed port 9009 protocol HTTP
request /
with timeout 3 seconds
then restart
if 10 restarts within 10 cycles then timeout
if 10 restarts within 10 cycles then exec "/usr/bin/monit start aws-dns-healthcheck"