Skip to content

Instantly share code, notes, and snippets.

@mfo
Created June 9, 2011 13:55
Show Gist options
  • Save mfo/1016768 to your computer and use it in GitHub Desktop.
Save mfo/1016768 to your computer and use it in GitHub Desktop.
# find a keychain
!security 2>&1 >/dev/null find-generic-password -gs \"GitHub\" | ruby -e 'print $1 if STDIN.gets =~ /^password: \\\"(.*)\\\"$/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment