Skip to content

Instantly share code, notes, and snippets.

@hvisage
Last active July 4, 2017 13:16
Show Gist options
  • Save hvisage/66d7bc162a88e3dfe329dbecbfa9affb to your computer and use it in GitHub Desktop.
Save hvisage/66d7bc162a88e3dfe329dbecbfa9affb to your computer and use it in GitHub Desktop.
Take dead man snitches list into csv for reports
#!/bin/bash
TAG=aquacheck
API=$1
curl -su ${APIKEY}: https://api.deadmanssnitch.com/v1/snitches \
| jq -r 'sort_by(.status)|.[] | select(.tags[] | contains("${TAG}")) |[.name, .interval, .checked_in_at, .status]|@csv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment