I hereby claim:
- I am kkumler on github.
- I am kkumler (https://keybase.io/kkumler) on keybase.
- I have a public key ASBxMX3sDYIPNPtC11O16lLeRTkGFnFawhH56VmAlQBkvgo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
FAMILY_PREFIX="" | |
# Ensure variables are set, that we don't directly use. This works do to the nounset option. | |
[[ "${AWS_PROFILE:?}" ]] |
# Given a file with a list of required services, sorted | |
# This could be created by aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/regions/us-east-1/services --query 'Parameters[].Name' --output yaml | cut -d'/' -f8 | sort > aws-services-us-east-1.txt | |
# And using GNU coretools (prefixed here with g, as usual with Homebrew on macos) | |
# Environment variables AWS_PROFILE & REGION exported | |
gcomm -2 -3 required-services.txt <(aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/regions/$REGION/services --query 'Parameters[].Name' --output yaml | cut -d'/' -f8 | sort) |
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# As is the classic warning, this is so far light on error handling. | |
# Get a set of parameters from Systems Manager Parameter Store and format them for use as environment variables | |
# Usage: ./get-parameters.sh [--export] prefix [prefix...] | |
# Options: |
{ | |
"title": "Change option+x to c, for when your c key breaks", | |
"rules": [ | |
{ | |
"description": "Change option+x to c", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "x", |
I hereby claim:
To claim this, I am signing this object:
*.dcm diff=dcmdump |
#!/bin/bash | |
PREV_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_CHECKOUT=$3 | |
if [[ $BRANCH_CHECKOUT == 1 ]]; then | |
# Show when it's been stopped, but not that it's already stopped. | |
bin/spring stop | grep --color=never stopped | |
fi |
#!/bin/bash | |
# | |
# Assume the given role, and print out a set of environment variables | |
# for use with aws cli. | |
# | |
# To use: | |
# | |
# $ eval $(./iam-assume-role.sh) | |
# |
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |