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 express = require('express'); | |
var cp = require('child_process'); | |
var app = express.createServer(); | |
var chrome_count = 0; | |
app.get('/', function(req, res){ | |
startChrome(chrome_count++,9222,function chromeStared(err,id,chrome){ | |
res.send('Chrome '+id+' Started\r\n'); |
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
<form action="http://localhost:3000/api/v1" method="post"> | |
<p>Your url here</p> | |
<input id="url" | |
style="width:800px" | |
type="text" value="'http://www.patrickhyundai.com/browse-new-hyundais.aspx'"/> | |
<br> | |
<p>jQuery Selector</p> | |
<textarea name="selector" style="width:400px;height:100px"> | |
var s = []; |
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 express = require('express'); | |
var cp = require('child_process'); | |
var Chrome = require('./lib/chrome'); | |
var Remote = require('./lib/remote'); | |
var app = express.createServer(); | |
app.use(express.bodyParser()); | |
app.use(app.router); | |
app.use(express.static(__dirname + '/public')); |
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 reverseLookup(ip) { | |
dns.reverse(ip,function(err,domains){ | |
if(err!=null) callback(err); | |
domains.forEach(function(domain){ | |
dns.lookup(domain,function(err, address, family){ | |
console.log(domain,'[',address,']'); | |
console.log('reverse:',ip==address); |
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
telnet whois.arin.net 43 | |
Trying 199.71.0.46... | |
Connected to whois.arin.net. | |
Escape character is '^]'. | |
n 213.46.228.196 | |
# | |
# The following results may also be obtained via: | |
# http://whois.arin.net/rest/nets;q=213.46.228.196?showDetails=true&showARIN=false&ext=netref2 | |
# |
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 net = require('net'); | |
var ARIN = function(ip,keyword,callback){ | |
var arin = { | |
port: 43, | |
host: 'whois.arin.net' | |
}; | |
var client = net.connect(arin.port,arin.host); |
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
//https://apps.db.ripe.net/whois/search.json?query-string=213.46.228.196&source=ripe | |
var net = require('net'); | |
var RIPE = function(ip,keyword,callback){ | |
var arin = { | |
port: 43, | |
host: 'whois.ripe.net' | |
}; | |
var client = net.connect(arin.port,arin.host); |
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 rules = [ | |
{ | |
reverse: 'upclive.nl', | |
arin: 'Amsterdam', | |
ripe: 'upc' | |
}, | |
{ | |
reverse: 'upclive.nl', | |
arin: 'Amsterdam', | |
ripe: 'upc' |
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
{"data":["http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DF4CU160872/H30197.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DF6CU187846/H31467.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DF5CU166261/H30727.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DD9CU181392/H31171.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DD2CU198101/H31732.aspx","http://www.patrickhyundai.com/new-hyundais/2011/Hyundai/Genesis/KMHGC4DF5BU145134/H20888.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DD0CU167283/H30322.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DD9CU167279/H30323.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DD6CU167000/H30320.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyundai/Genesis/KMHGC4DD7CU152683/H30034.aspx","http://www.patrickhyundai.com/new-hyundais/2012/Hyunda |
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
CGEventRef eventCommandK = CGEventCreateKeyboardEvent(NULL, (CGKeyCode)40, true); | |
CGEventSetFlags(eventCommandK, kCGEventFlagMaskCommand); | |
CGEventPost(kCGSessionEventTap, eventCommandK); |
OlderNewer