This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -k -X POST --netrc-file passfile https://url.with.auth.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace REPLACEME in fileB with the contents of fileA with " " prepended to each line, save to fileC | |
awk 'NR==FNR { a[n++]=" "$0; next } | |
/REPLACEME/ {for (i=0; i<n; ++i) print a[i]; next } | |
1' fileA fileB > fileC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
ls -1 -d */ | while read i | |
do | |
cd "$i" | |
if [ -d .git ] | |
then | |
{ | |
ncommits=$(eval 'git log --oneline --author="Spenser" --since="`date -v monday`" | wc -l' 2> /dev/null ) | |
} || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cucumber | |
Using the default profile... | |
Feature: Manage Articles | |
In order to make a blog | |
As an author | |
I want to create and manage Articles | |
Scenario: Articles List # features/manage_articles.feature:6 | |
Given I have articles titled Pizza, Breadsticks # features/step_definitions/article_steps.rb:1 | |
When I go to the list of articles # features/step_definitions/web_steps.rb:48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
lg = log --format=\"%h - %C(cyan)%s%Creset %C(dim white)(%ar) [%an - %ae]%Creset%n%w(72,4,4)%b\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +spenserpothier is my openname (Bitcoin username). https://onename.com/spenserpothier |
NewerOlder