Skip to content

Instantly share code, notes, and snippets.

View speshak's full-sized avatar

Scott Peshak speshak

View GitHub Profile
@speshak
speshak / Makefile
Created January 20, 2021 13:23
OScad Makefile
include ../common.mk
@speshak
speshak / Makefile
Created May 27, 2020 13:12
AWS SAM Makefile
ACCOUNTID=$(shell aws sts get-caller-identity --query Account --output text)
# Parameter loading
ENV=prod
STACK_PARAMETERS := $(shell cat stack-parameters/$(ENV) | tr '\n' ' ')
INPUT_TEMPLATE_FILE := template.yaml
BUILTCSS := $(patsubst %.scss,%.css,$(shell find . -type f -name \*.scss -not -path ./.aws-sam\*))
.PHONY: deploy
@speshak
speshak / Output
Last active May 9, 2017 15:45
Convert CIDR networks into string glob (like what ssh_config expects)
10.255.0.0/11
['10.224.*',
'10.225.*',
'10.226.*',
'10.227.*',
'10.228.*',
'10.229.*',
'10.230.*',
'10.231.*',
'10.232.*',
@speshak
speshak / vault_grep
Last active September 15, 2020 15:52
vault_grep
#!/bin/sh
SEARCH=$1
for vault in $(grep -Rl ANSIBLE_VAULT .); do
ansible-vault decrypt --output=- $vault | grep ${SEARCH} | sed -e "s~^~${vault}: ~"
done

Keybase proof

I hereby claim:

  • I am speshak on github.
  • I am speshak (https://keybase.io/speshak) on keybase.
  • I have a public key whose fingerprint is 2AA9 A437 14BF 6A94 E3F8 8750 BDB3 7607 CED3 EC53

To claim this, I am signing this object: