This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dns = require('dns') | |
const portscanner = require('portscanner') | |
dns.lookup('abc.myq-see.com', function(err, result) { | |
if (err) return console.log('err', err) | |
portscanner.checkPortStatus(34586, result, function(err, status) { | |
console.log('err1', err) | |
console.log('status', status) // open means port is being used | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl http2; | |
server_name local.4-handy.com; | |
root /Users/hieple/Code/4handy-work-2/public; | |
# security | |
ssl_prefer_server_ciphers on; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH; | |
ssl_ecdh_curve secp384r1; | |
ssl_certificate /usr/local/etc/nginx/ssl/localwork.pem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const debug = _.curry((tag, x) => { | |
console.log(tag, x) | |
return x | |
}) | |
$http.get('/quizzes/' + $stateParams.quizId + '/do') | |
.success(function (response) { | |
$scope.paper = response.paper | |
const questions = response.paper.questions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |