Skip to content

Instantly share code, notes, and snippets.

@tsnow
Last active August 29, 2015 14:01
Show Gist options
  • Save tsnow/9c6eae723b89a8d1df67 to your computer and use it in GitHub Desktop.
Save tsnow/9c6eae723b89a8d1df67 to your computer and use it in GitHub Desktop.
All your commit messages on github
gem install github_api; ruby -rgithub_api -e 'g=Github.new(:basic_auth => %(USERNAME:PASSWORD)); puts g.repos.list.map{|i| g.repos.commits.list(:repo => i.name, :author => %(USERNAME), :user => i.owner.login).map{|j| j.commit.message }}'
@tsnow
Copy link
Author

tsnow commented May 14, 2014

http://golang.org/doc/codewalk/markov/

 ~/src/markov$ cat main.go | sed 's/$/ ./' | GOROOT=/usr/local/Cellar/go/HEAD/libexec go run main.go -prefix=1 -words=2000 | sed 's/ \./\
/g'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment