scripts/gist: add standalone version of gist