I’ve needed to do this more than once so I created a gist a while back and forgot about it until I needed it again tonight. Hopefully this helps someone else.