Skip to content

Instantly share code, notes, and snippets.

View mradbourne's full-sized avatar

Matt Radbourne mradbourne

View GitHub Profile
@mpatric
mpatric / pj
Last active November 5, 2020 17:24
Pretty JSON output, with ANSI colour passthrough
#!/usr/bin/env ruby
require 'pty'
require 'json'
def prettify(s)
begin
s.scan(/^.*?(\{.*\}).*?$/).first.map do |f|
JSON.pretty_generate(JSON.parse(f)) rescue f
end
rescue
@veuncent
veuncent / aws_glacier_delete_vault.md
Last active September 3, 2025 13:18
Delete all archives in an AWS Vault

AWS Glacier: Delete vault

Follow these steps to remove all archives from an AWS vault. After this is finished, you will be able to delete the vault itself through the browser console.

Step 1 / Retrieve inventory

This will create a job that collects required information about the vault.

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --account-id YOUR_ACCOUNT_ID --region YOUR_REGION --vault-name YOUR_VAULT_NAME 
@salcode
salcode / .gitignore
Last active September 27, 2025 02:50
See https://salferrarello.com/wordpress-gitignore/ for the latest version of my WordPress .gitignore file
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore