Skip to content

Instantly share code, notes, and snippets.

View Anton0's full-sized avatar

Anthony Anton0

  • Melbourne, AU
  • 21:18 (UTC +10:00)
  • X @anton0
View GitHub Profile
@Anton0
Anton0 / set_all_log_groups_to_expire_in_a_week.sh
Created April 22, 2023 03:05
make all my log groups expire in a week
#!/usr/bin/env bash
for i in $(aws logs describe-log-groups --query "logGroups[].logGroupName" --output text); do aws logs put-retention-policy --log-group-name $i --retention-in-days 7; done
@Anton0
Anton0 / scanmerge.py
Created June 28, 2019 09:40 — forked from bskinn/scanmerge.py
Helper script to merge two one-sided scan PDFs of a two-sided document into a single PDF, where the odd pages are in order but the even pages are reversed.
#
# Helper script to properly merge two one-sided scans of a PDF,
# where the odd-numbered pages are scanned in order but the
# even-numbered pages are scanned in reverse order.
#
# Requires PyPDF2 ('pip install PyPDF2')
#
# Input PDFs should be named the same thing, with _odd and _even as
# suffixes to the filename (e.g., doc_odd.pdf and doc_even.pdf).
# Pass the base filename into the script,

Keybase proof

I hereby claim:

  • I am anton0 on github.
  • I am aengelstad (https://keybase.io/aengelstad) on keybase.
  • I have a public key ASAyQeODIBSpoCXE-hf2GJQFOQhVkGItnpKMolkGsquqsgo

To claim this, I am signing this object: