{"action":"opened","issue":{"url":"https://api.github.com/repos/sund/dotfiles2/issues/32","labels_url":"https://api.github.com/repos/sund/dotfiles2/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/sund/dotfiles2/issues/32/comments","events_url":"https://api.github.com/repos/sund/dotfiles2/issues/32/events","html_url":"https://github.com/sund/dotfiles2/issues/32","id":115554752,"number":32,"title":"get password from keychain","user":{"login":"sund","id":867695,"avatar_url":"https://avatars.githubusercontent.com/u/867695?v=3","gravatar_id":"","url":"https://api.github.com/users/sund","html_url":"https://github.com/sund","followers_url":"https://api.github.com/users/sund/followers","following_url":"https://api.github.com/users/sund/following{/other_user}","gists_url":"https://api.github.com/users/sund/gists{/gist_id}","starred_url":"https://api.github.com/users/sund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sund/subscriptions","organizations_url":"https://api.github.com/users/sund/orgs","repos_url":"https://api.github.com/users/sund/repos","events_url":"https://api.github.com/users/sund/events{/privacy}","received_events_url":"https://api.github.com/users/sund/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sund/dotfiles2/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"sund","id":867695,"avatar_url":"https://avatars.githubusercontent.com/u/867695?v=3","gravatar_id":"","url":"https://api.github.com/users/sund","html_url":"https://github.com/sund","followers_url":"https://api.github.com/users/sund/followers","following_url":"https://api.github.com/users/sund/following{/other_user}","gists_url":"https://api.github.com/users/sund/gists{/gist_id}","starred_url":"https://api.github.com/users/sund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sund/subscriptions","organizations_url":"https://api.github.com/users/sund/orgs","repos_url":"https://api.github.com/users/sund/repos","events_url":"https://api.github.com/users/sund/events{/privacy}","received_events_url":"https://api.github.com/users/sund/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-11-06T17:51:26Z","updated_at":"2015-11-06T17:51:26Z","closed_at":null,"body":"```\r\n# Gets password from OS X Keychain.\r\n# $ get-pass github\r\nfunction get-pass() {\r\n  keychain=\"$HOME/Library/Keychains/login.keychain\"\r\n  security -q find-generic-password -g -l $@ $keychain 2>&1 |\\\r\n    awk -F\\\" '/password:/ {print $2}';\r\n}\r\n```"}}