Skip to content

Instantly share code, notes, and snippets.

View particleflux's full-sized avatar
👉
curl http.machine.codes/418

Stefan Linke particleflux

👉
curl http.machine.codes/418
View GitHub Profile
@particleflux
particleflux / prepare-commit-msg
Created January 25, 2021 21:31
Check git user config on first local commit
#!/usr/bin/env bash
verified=$(git config --type=bool hooks.userverified)
# grab input
exec < /dev/tty
exec 1>&2
if [[ "$verified" != "true" ]]; then
echo "Checking committer info..."
@particleflux
particleflux / Route53 Changes filter
Created February 14, 2019 10:46
CloudTrail Route53 Changes filter for creating an alarm
{
$.eventSource = "route53.amazonaws.com"
&& (
($.eventName = Create*)
|| ($.eventName = Delete*)
|| ($.eventName = Update*)
|| ($.eventName = Disable*)
|| ($.eventName = Enable*)
|| ($.eventName = RegisterDomain)
|| ($.eventName = TransferDomain)