Skip to content

Instantly share code, notes, and snippets.

View spenserpothier's full-sized avatar
🍔

Spenser Pothier spenserpothier

🍔
View GitHub Profile
@spenserpothier
spenserpothier / getGoTools.sh
Last active April 8, 2019 23:25 — forked from tydavis/getGoTools.sh
Setup Go tools
#!/bin/sh
go get -u github.com/dougm/goflymake
go get -u github.com/acroca/go-symbols
go get -u github.com/alecthomas/gometalinter
go get -u github.com/cweill/gotests/...
go get -u github.com/davidrjenni/reftools/cmd/fillstruct
go get -u github.com/derekparker/delve/cmd/dlv
go get -u github.com/dominikh/go-tools/cmd/keyify
go get -u github.com/fatih/gomodifytags
@spenserpothier
spenserpothier / exportOptions-AdHoc-Distribution.plist
Last active December 13, 2019 18:44
Use xcodebuild for iOS builds
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>ad-hoc</string>
<key>teamID</key>
<string>10_DIGIT_DEVELOPER_ID</string>
<key>provisioningProfiles</key>
<dict>
<key>MY_APP_BUNDLE_ID</key>
@spenserpothier
spenserpothier / findResourceByType.zsh
Created April 10, 2020 20:54
Shell command to search through regions and profiles and return all `resourceNames` and `resourceIds` for a given ResourceType. meant to be sourced into an RC
function findResourcesByType() {
if (($# == 0)) then
echo "\nUsage: findResourceByType <ResourceType>"
echo "\nResourceType list can be found at https://docs.aws.amazon.com/cli/latest/reference/configservice/list-discovered-resources.html#options"
return 1;
fi
# Fill these with the names of the profiles and regions you want to look through, space seperated
PROFILES=()
REGIONS=()
for o in $PROFILES; do