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
var dns = require('dns'); | |
function getIPAddresses(hostName){ | |
dns.resolve4(hostName, function (err, addresses) { | |
if (err) throw err; | |
//console.log('Addresses: ' + JSON.stringify(addresses) ); | |
addresses.forEach(function (a) { | |
dns.reverse(a, function (err, domains) { | |
if (err) { |
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
/* | |
Simple Node.js TCP Socket Server | |
Author: Ashu Joshi | |
*/ | |
"use strict'"; | |
const SERVER_PORT = 10000; | |
const | |
net = require('net'), | |
server = net.createServer(function (connection) { |
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
# How to launch (and suspend) VMWare Fusion Guest OS without a GUI, using command line | |
# Start a Virtual Machine with NO GUI | |
# Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS] | |
# vmrun - Command Line VMWare Fusion tool | |
# -T option is to specify hostType | |
# fusion (this is the hosttype) | |
# start (command to start) | |
# followed by path to the VMX | |
# nogui - to specify to launch silently, without GUI |