Skip to content

Instantly share code, notes, and snippets.


Alek Storm alekstorm

  • Flexport, Inc.
  • Chicago, IL
View GitHub Profile
alekstorm /
Last active Apr 23, 2020
Ansible callback plugin that posts events to your Datadog event stream as you deploy


To install, place in your callback plugins directory. If you don't yet have one, run:

mkdir -p plugins/callback

Then place the following in your ansible.cfg file:

callback_plugins = ./plugins/callback
alekstorm / git-reviewers
Last active Apr 17, 2018
Finds likely good reviewers for a commit or range of commits by getting a diff, then running `git blame` on the previous versions of each changed hunk. Outputs a sorted list of reviewer names, emails, and how many lines you've both touched. To use, name the file `git-reviewers`, put it somewhere in your $PATH, make it executable, and call it wit…
View git-reviewers
#!/usr/bin/env bash -ue
if [[ $# -lt 1 || $# -gt 2 ]]; then
echo "Usage: git $(basename "$0" | sed 's/^git-//') <end-commit> [<start-commit>]"
exit 1
if [[ $# -eq 2 ]]; then
alekstorm / gist:1196787
Created Sep 6, 2011
Getting started with PyGravatar
View gist:1196787
>>> import gravatar
>>> user = gravatar.User(<email>, password=<password>) # substitute the email address and password of a Gravatar account
>>> user.test()
1315290974 # however many seconds have passed since 1970