Skip to content

Instantly share code, notes, and snippets.

@greymd
Created March 27, 2017 13:37
Show Gist options
  • Save greymd/08e2fe15b08ef182a6fd0c0e806dc658 to your computer and use it in GitHub Desktop.
Save greymd/08e2fe15b08ef182a6fd0c0e806dc658 to your computer and use it in GitHub Desktop.
cure.glue
import /usr/bin/ as ub
proc cure = /usr/local/bin/docker 'run' '-i' 'greymd/cureutils' 'cure' argv[1]
proc cure_date_stdin = /usr/local/bin/docker 'run' '-i' 'greymd/cureutils' 'cure' 'date' '-f' '-' argv[1]
ub.seq '1' '365' >>=
ub.sed 's/$/ days ago/' >>=
this.cure_date_stdin '+%F @P' >>=
this.cure 'grep' >>=
ub.sed 's|/.*$||' >>= ub.head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment