ufw status verbose will tell you what is already configured (if it says Status: inactive then you haven't enabled ufw yet).
The gist you linked to is a shell script, so it's designed to be run on your server to apply those settings (here's how)
Or you can just copy and paste the lines you want to use, e.g. ufw allow http etc