migrate some scripts from my r-shippable repo