Skip to content

Instantly share code, notes, and snippets.

Ben Steinberg bensteinberg

Block or report user

Report or block bensteinberg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bensteinberg / notifier-howto.txt
Last active Mar 1, 2019
Set up a daily notification in Slack for changes in a remote git repo on Heroku Scheduler
View notifier-howto.txt
# set up an incoming webhook on Slack (, then
heroku create my-notifier
heroku config:set REPO='' -a my-notifier
heroku config:set SINCE='1 day ago' -a my-notifier
heroku config:set WATCHFILES='file1 file2 /full/path/to/file3' -a my-notifier
heroku config:set WEBHOOK='' -a my-notifier
heroku config:set USERNAME='a user who notifies' -a my-notifier
heroku config:set EMOJI='ghost' -a my-notifier
heroku addons:create scheduler:standard -a my-notifier
# note the ID of the scheduler, then
bensteinberg / pre-commit
Last active Jun 6, 2017
pre-commit hook for adding a timestamp to the frontmatter of markdown files
View pre-commit
use POSIX qw(strftime);
# this is a pre-commit hook for setting a timestamp in the frontmatter
# of markdown files
my $date = strftime "%Y-%m-%dT%H:%M:%SZ", gmtime;
my @files = `git diff-index --cached --name-only HEAD`;
foreach (@files) {
if (/\.md$/) { # maybe HTML, too?

Keybase proof

I hereby claim:

  • I am bensteinberg on github.
  • I am bens ( on keybase.
  • I have a public key ASChZ0JqA2RdD3V_YeqkDjSM7_KDqYBfuH52OUJZ4H15WQo

To claim this, I am signing this object:

bensteinberg / index.html
Last active Aug 29, 2015 — forked from mbostock/.block
Arc piano
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
.key {
stroke-width: 1.5px;
transition: fill 250ms linear, stroke 250ms linear;
transition-delay: 150ms;
You can’t perform that action at this time.