Skip to content

Instantly share code, notes, and snippets.

@inator
inator / entities
Last active September 4, 2021 21:33
{
"ha:system:peer-interface": {
"config": {
"name": "peer-interface",
"id": "peer-interface",
"zone": "Home"
},
"platform": "ha",
"type": "system",
"features": {
@inator
inator / reverse-ip-lookup.js
Created April 6, 2016 22:42 — forked from eugenehp/reverse-ip-lookup.js
node.js IP reverse lookup
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 August 29, 2015 14:27 — forked from boxxxie/couchdb.sh
bash couch stuff
#!/bin/bash
# These functions require underscore-cli (npm install -g underscore-cli)
# a CouchDB instance
#host=$(<~/.couchrc)
host="$1"
couch-get() {
db="$1"
@inator
inator / index.html
Created July 21, 2015 19:19
test gist
<body>test</body>
/**
* 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'),
/**
* 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'),