Skip to content

Instantly share code, notes, and snippets.

@jdx
Last active April 8, 2016 04:20
Show Gist options
  • Save jdx/1b2dde81bcef2a7e3d25d7535c8f14f2 to your computer and use it in GitHub Desktop.
Save jdx/1b2dde81bcef2a7e3d25d7535c8f14f2 to your computer and use it in GitHub Desktop.
'use strict';
let dns = require('dns');
setInterval(() => {
dns.lookup('api.heroku.com', err => {
if (err) console.error(`XXXXXXXXXXXXX\nERROR: ${err}\nXXXXXXXXXXXXXXX`);
else process.stdout.write('.');
});
}, 200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment