Skip to content

Instantly share code, notes, and snippets.

@Jachimo
Jachimo / pingtest.sh
Last active September 7, 2017 18:06
Ugly but useful hack to repeatedly (at a broad interval, e.g. 10s or 30s) ping a server and log whether it replied. Does not use cron.
#!/usr/bin/env bash
## Sends a ping to a server and writes a failure or success log message
## Logs results to syslog; find and filter in Console, search for "PINGTEST"
# Change this as needed, must be server that responds to pings
PINGDEST=192.168.1.1
# Interval in seconds to send a ping (e.g. send every X seconds)
INTERVAL=10
@Jachimo
Jachimo / keybase.md
Created August 4, 2017 16:49
Keybase identity proof

Keybase proof

I hereby claim:

  • I am jachimo on github.
  • I am jwt (https://keybase.io/jwt) on keybase.
  • I have a public key ASBOdDl-_RIF8gXMr1MzM_3YuCm_trfewAw70pvNisCXXgo

To claim this, I am signing this object: