Skip to content

Instantly share code, notes, and snippets.

View haversnail's full-sized avatar
🔨
I may be slow to respond.

Alex Havermale haversnail

🔨
I may be slow to respond.
  • The New York Times
  • Remote
  • 17:42 (UTC -04:00)
View GitHub Profile
@haversnail
haversnail / apprunner.sh
Created May 24, 2022 23:48
A lightweight wrapper around the AWS CLI for interacting with the App Runner service.
#!/bin/sh
usage() {
echo >&2
echo "A lightweight wrapper around the AWS CLI for interacting with AWS App Runner." >&2
echo "Provides feedback during operations." >&2
echo >&2
echo "Usage: $0 <command> [options...]" >&2
echo >&2
echo "pause Pauses a running service" >&2
@haversnail
haversnail / rename-ssm-params.sh
Created May 20, 2022 17:44
A bash script for renaming AWS SSM Parameter Store parameters.
#!/bin/bash
OLD="$1"; shift
NEW="$1"; shift
RESPONSE=$(eval "aws ssm describe-parameters")
# Get the parameter descriptions (since they aren't included in `get-parameters-by-path`):
PARAMS=$(echo $RESPONSE | jq -c --arg path $OLD '.Parameters | map({Name, Description, Type}) | .[] | select(.Name | startswith($path))')
@haversnail
haversnail / UIColor+Hex.swift
Created May 30, 2017 05:01
A Swift UIColor extension adding hex color code support.
//
// UIColor+Hex.swift
// Gist
//
// Created by Alexander Havermale on 5/26/17.
// Copyright © 2017 Alex Havermale. All rights reserved.
//
import UIKit