Skip to content

Instantly share code, notes, and snippets.

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