Skip to content

Instantly share code, notes, and snippets.

View T313C0mun1s7's full-sized avatar

John C. Reid T313C0mun1s7

View GitHub Profile
@T313C0mun1s7
T313C0mun1s7 / dmarc.sh
Created October 14, 2025 01:39
bash script to update all AWS Route 53 DMARC records with p=none to p=reject
#!/usr/bin/env bash
#
# Update DMARC TXT records in Route 53 from "p=none" to "p=reject".
# - Scans all hosted zones.
# - Matches any TXT record whose leftmost label is "_dmarc" (apex or subdomain).
# - Only changes the "p=none" part; everything else stays the same.
#
# Usage:
# DRY_RUN=true ./dmarc.sh # default, prints intended changes only
# DRY_RUN=false ./dmarc.sh # performs UPSERTs
@T313C0mun1s7
T313C0mun1s7 / updateSM.sh
Created October 28, 2024 17:00
SmarterMail Linux Update
#!/bin/bash
# Script to update SmarterMail on an Ubuntu server
# This script automatically scrapes the release notes page to find the latest build number,
# then downloads and installs the latest version of SmarterMail.
# Constants
RELEASE_NOTES_URL="https://www.smartertools.com/smartermail/release-notes/current"
LOG_FILE="/var/log/smartermail_update.log"
MAX_LOG_SIZE=10485760 # 10MB
@T313C0mun1s7
T313C0mun1s7 / keybase.md
Created October 5, 2016 04:12
Keybase.io

Keybase proof

I hereby claim:

  • I am T313C0mun1s7 on github.
  • I am johnreid (https://keybase.io/johnreid) on keybase.
  • I have a public key whose fingerprint is F32E 6E00 ABE8 E6E6 A280 21D6 2053 0FEE 94C0 7D8A

To claim this, I am signing this object: