Skip to content

Instantly share code, notes, and snippets.

-- STEP 1 --
$> ./fetch https://google.com https://apple.com https://microsoft.com
$> https://google.com
$> https://apple.com
$> https://microsoft.com
-- STEP 2 --
./fetch https://www.google.com # this should be successful
-- STEP 3 --

Keybase proof

I hereby claim:

  • I am scootklein on github.
  • I am scootklein (https://keybase.io/scootklein) on keybase.
  • I have a public key whose fingerprint is DC39 D295 26B1 EFAD 7823 6D94 5632 A970 BA73 05FB

To claim this, I am signing this object:

@scootklein
scootklein / gist:4002367
Created November 2, 2012 16:12
shell functions for running commands against heroku product and staging envs
function hp() {
orig_args="$@"
remotes=`git remote -v | grep production | grep -v worker`
set $remotes
repo=${2/git@heroku.com:/}
hp_predicate=${repo/.git/};
echo "heroku $orig_args --app $hp_predicate"
heroku $orig_args --app $hp_predicate
}