Skip to content

Instantly share code, notes, and snippets.

View peterjaffray's full-sized avatar
♨️
Winter is coming. Overclocking and 40 below 0 - best time of the year.

Peter Jaffray peterjaffray

♨️
Winter is coming. Overclocking and 40 below 0 - best time of the year.
View GitHub Profile
@peterjaffray
peterjaffray / r53-wipe.sh
Last active May 3, 2020 18:32
r53 wipe zone
#!/bin/bash
# ./r53-wipe domain.com
# chmod +x r53-wipe.sh
# sudo apt install jq
# Description: This is a basic script to remove hosted zones from r53. It's a real pain in the ass when you have to do it manually.
for domain in "$@"; do
echo "removing $domain and it's records ... "
hosted_zone_id=$(aws route53 list-hosted-zones --output text --query 'HostedZones[?Name==`'$domain'.`].Id')
@peterjaffray
peterjaffray / custom.js
Created April 12, 2020 19:55
Elementor Forms Pro - Customizing & Debugging Ajax Form Responses
<script>
$( document ).on('submit_success', function( event, response ){
if ( response.data ) {
console.log( response );
console.log( response.data );
console.log( response.data.form_name );
}
});
</script>