Skip to content

Instantly share code, notes, and snippets.


Ryan Thompson gyant

View GitHub Profile
gyant / sops-clean
Last active May 17, 2019
SOPS Helpers
View sops-clean
FILES=$(find . -ipath '*/secrets/*.yml' | grep -v .enc.yml)
for i in $FILES; do
rm $i
gyant /
Created Feb 6, 2019
Refactoring Go Helper
while :; do ag -l --go | entr -cd go test ./...; sleep 1 || break; done
gyant /
Created Jan 15, 2019
Delete All EC2 Placement Groups
aws ec2 describe-placement-groups | jq -r '.PlacementGroups[] | .GroupName' | xargs -I {} aws ec2 delete-placement-group --group-name {}
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 / 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",