Skip to content

Instantly share code, notes, and snippets.

View ndejong's full-sized avatar
💭
I may be slow to respond.

Nicholas de Jong ndejong

💭
I may be slow to respond.
View GitHub Profile
@ndejong
ndejong / fast-aws-glacier-delete-archives.py
Last active August 24, 2022 23:40
Delete large numbers of AWS Glacier archives quickly - useful for cleaning up after Synology Glacier Backup files are no longer needed
#!/usr/bin/env python3
import os
import json
import asyncio
import warnings
import subprocess
# inventory_retrieval_json_path = path where the JSON output from a set of glacier inventory-retrieval
# jobs have been saved - https://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-an-archive-using-cli.html
@ndejong
ndejong / proxmox-ubuntu-clone-prep.sh
Last active September 5, 2022 03:28
Cleanup an Ubuntu host before making it a Proxmox template
#!/bin/bash
#
# Adapted from
# https://www.reddit.com/r/Proxmox/comments/plct2v/are_there_any_current_guides_on_templatingcloning/
#
set -e
id
@ndejong
ndejong / keybase.md
Last active July 16, 2019 16:45
keybase.md

Keybase proof

I hereby claim:

  • I am ndejong on github.
  • I am ndejong (https://keybase.io/ndejong) on keybase.
  • I have a public key ASA5lcbrB0SzqzQX-pVTXJ9I62A5XcNjCVQfPpuKgFZMRwo

To claim this, I am signing this object: