Skip to content

Instantly share code, notes, and snippets.

@inator
inator / reverse-ip-lookup.js
Created Apr 6, 2016 — forked from eugenehp/reverse-ip-lookup.js
node.js IP reverse lookup
View reverse-ip-lookup.js
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);
@inator
inator / couchdb.sh
Last active Aug 29, 2015 — forked from boxxxie/couchdb.sh
bash couch stuff
View couchdb.sh
#!/bin/bash
# These functions require underscore-cli (npm install -g underscore-cli)
# a CouchDB instance
#host=$(<~/.couchrc)
host="$1"
couch-get() {
db="$1"
View index.html
<body>test</body>
View gist:464b367f0836c2f089e7
/**
* Hoodie plugin template
* An example plugin worker, this is where you put your backend code (if any)
*/
var OAuth = require('oauthio'),
session = require('express-session'),
async = require('async'),
_ = require('lodash'),
debug = require('debug'),
log = debug('app:log'),
View gist:aa1ab6ab2029f21c5f2f
/**
* Hoodie plugin template
* An example plugin worker, this is where you put your backend code (if any)
*/
var OAuth = require('oauthio'),
session = require('express-session'),
async = require('async'),
_ = require('lodash'),
debug = require('debug'),
log = debug('app:log'),
You can’t perform that action at this time.