277390 (2) [Avatar] Offline
#1
Anonymous GIST were disabled April 2018.

To be able to publish..

Created a personal access token on github with gist scope.

const auth = btoa("YOURUSERNAME:TOKEN");

//updated the request header
const request = require('request').defaults({
url: 'https://api.github.com/gists',
headers: { 'User-Agent': 'Clipmaster 9000',"Authorization":"Basic "+auth }
});