Skip to content

Instantly share code, notes, and snippets.

@ryankee
Forked from nileshashra/gist:104feea8ecbd92350f3d
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save ryankee/e9a57eaff7ad13115d99 to your computer and use it in GitHub Desktop.

Select an option

Save ryankee/e9a57eaff7ad13115d99 to your computer and use it in GitHub Desktop.

Revisions

  1. ryankee revised this gist Oct 27, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    _grabkey() {
    curl -s -S https://api.github.com/users/$1/keys | jsonpipe | grep '/0/key' | awk '{ print $3 }'
    curl -s -S "https://api.github.com/users/$1/keys" | grep 'key' | awk '{c=$3; gsub(/\"/,"",c); print c}'
    }
    alias grabkey=_grabkey
  2. Nilesh Ashra created this gist Oct 27, 2014.
    4 changes: 4 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    _grabkey() {
    curl -s -S https://api.github.com/users/$1/keys | jsonpipe | grep '/0/key' | awk '{ print $3 }'
    }
    alias grabkey=_grabkey