This file contains hidden or 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
/** | |
* 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'), |
This file contains hidden or 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
/** | |
* 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'), |
This file contains hidden or 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
<body>test</body> |
This file contains hidden or 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
#!/bin/bash | |
# These functions require underscore-cli (npm install -g underscore-cli) | |
# a CouchDB instance | |
#host=$(<~/.couchrc) | |
host="$1" | |
couch-get() { | |
db="$1" |
This file contains hidden or 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 hidden or 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
{ | |
"ha:system:peer-interface": { | |
"config": { | |
"name": "peer-interface", | |
"id": "peer-interface", | |
"zone": "Home" | |
}, | |
"platform": "ha", | |
"type": "system", | |
"features": { |