Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Thompson gyant

View GitHub Profile
@gyant
gyant / sops-clean
Last active May 17, 2019
SOPS Helpers
View sops-clean
#!/bin/bash
FILES=$(find . -ipath '*/secrets/*.yml' | grep -v .enc.yml)
for i in $FILES; do
rm $i
done
@gyant
gyant / watch-go-test.sh
Created Feb 6, 2019
Refactoring Go Helper
View watch-go-test.sh
#!/bin/bash
while :; do ag -l --go | entr -cd go test ./...; sleep 1 || break; done
@gyant
gyant / deletes-all-placement-groups.sh
Created Jan 15, 2019
Delete All EC2 Placement Groups
View deletes-all-placement-groups.sh
aws ec2 describe-placement-groups | jq -r '.PlacementGroups[] | .GroupName' | xargs -I {} aws ec2 delete-placement-group --group-name {}
@gyant
gyant / find-hdd-serials.ps1
Created Jan 6, 2019
Windows 10 Powershell (Administrator) -- Find Storage Device Serial Numbers
View find-hdd-serials.ps1
Get-WMIObject win32_physicalmedia | Format-List Tag,SerialNumber
@gyant
gyant / capitals.json
Created Sep 1, 2015
US State Codes to Capitals JSON Object
View capitals.json
{
"AL": "Montgomery",
"AK": "Juneau",
"AS": "Pago Pago",
"AZ": "Phoenix",
"AR": "Little Rock",
"CA": "Sacramento",
"CO": "Denver",
"CT": "Hartford",
"DE": "Dover",