Show HN: Turn GitHub Usernames into Emails
github.com
github.com
> Mailgun’s email validation service is available for free to all Mailgun customers. It is intended to validate email addresses submitted through forms like newsletters, online registrations and shopping carts. It is not intended to be used for bulk email list scrubbing and we reserve the right to disable your account if we see it being used as such.
[1] https://github.com/mailgun/flanker/
[2] https://github.com/mailgun/flanker/blob/master/docs/User%20M...
In my native language (Russian) people already do (and have done long before email existed). In fact, I don't see why that would be unusual. When faxes were used, everyone used to refer to fax numbers as "fax", right?
gitspam () {
if [ -z "$1" ] || [ "$#" -gt 1 ] || [ "$#" -lt 1 ] || grep -v "http\(s\)\?://\(.*\)\.git" <(echo "$1") &>/dev/null ; then
echo "usage: gitspam http://somedomain.tld/path/to/repo.git"
return
fi
tmpdir=$(mktemp -d)
git clone --bare "$1" "$tmpdir" &>/dev/null
cd "$tmpdir"
git log --pretty=format:'%ae' | sort -u
cd "$OLDPWD"
rm -rf "$tmpdir"
} git shortlog -se |& sed 's/^.*\(<\(.*\)>\)/\2/g' | sort -u
is a quicker replacement for git log --pretty=format:'%ae' | sort -u
By about 50% # Set your email address
git config --global user.email "username@users.noreply.github.com"
https://help.github.com/articles/keeping-your-email-address-...Now what are appropriate ways to use that data, that's an interesting question.
related: https://github.com/ghtorrent/ghtorrent.org/issues/32 (Ghtorrent archives the public timeline of GitHub)
(Perhaps I don't understand the way in which git pushes work well enough?)
Maybe GitHub should indicate more precisely who pushed the commit, but on the other hand that's often unnecessary noise as well.
If you want to be able to trust the data in a commit, it has to be signed (which nearly nobody does, and AFAIK GitHub doesn't display)
I completely missed that use case. Thanks for the explanation!
You're right in that no one signs commits (unfortunately, including myself).
http://programmers.stackexchange.com/questions/212192/what-a...
[1]: https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work
"We've seen your contributions to github and think you'd be an excellent fit for our startup ... PS Please move to Paris".
That could be solved by using this, I believe: http://ruby-doc.org/stdlib-2.0.0/libdoc/tmpdir/rdoc/Dir.html