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
templates: | |
langfilter: | |
regexp: | |
from: title | |
reject: | |
- italian | |
- german | |
- dutch | |
- spanish | |
- french |
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
#!/bin/sh | |
### NZBGET POST-PROCESSING SCRIPT | |
# If a download fails, reset the seen and downloaded flags in | |
# flexget so it can be tried again | |
if [ "$NZBPP_PARSTATUS" -eq 1 -o "$NZBPP_UNPACKSTATUS" -eq 1 ]; then | |
TITLE="$NZBPR__DNZB_PROPERNAME" | |
flexget seen forget "$TITLE" |
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 Hapi = require('hapi'); | |
var client = require('riakpbc').createClient(); | |
var server = new Hapi.Server('127.0.0.1', 3000); | |
server.route({ | |
method: 'GET', | |
path: '/', | |
handler: function (request, reply) { | |
client.get({ bucket: 'test', key: 'test' }, function () { | |
throw 'BOOM'; |
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 Hapi = require('hapi'); | |
var Joi = require('joi'); | |
var server = new Hapi.Server('127.0.0.1', 3000); | |
server.route({ | |
method: 'GET', | |
path: '/{version}/something', | |
handler: function (request, reply) { | |
reply(request.params.version); | |
}, |
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
cache._get = cache.get; | |
cache.get = function () { | |
var args = Array.prototype.slice.call(arguments); | |
var request = args.shift(); | |
request.log(['tags'], 'stuff'); | |
cache._get.apply(this, args); | |
}; |
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
1390427014.806852 [0 127.0.0.1:55407] "hset" "music:items:docs" "1" "{\"id\":1,\"name\":\"Metallica\"}" | |
1390427014.806903 [0 127.0.0.1:55407] "hset" "music:items:docs" "2" "{\"id\":2,\"name\":\"Van Halen\"}" | |
1390427014.806925 [0 127.0.0.1:55407] "hset" "music:items:docs" "3" "{\"id\":3,\"name\":\"Tupac\"}" | |
1390427014.806961 [0 127.0.0.1:55407] "hset" "music:items:docs" "4" "{\"id\":4,\"name\":\"Eminem\"}" | |
1390427014.806983 [0 127.0.0.1:55407] "hset" "music:items:docs" "5" "{\"id\":5,\"name\":\"Ne-Yo\"}" | |
1390427014.807004 [0 127.0.0.1:55407] "hset" "music:items:docs" "6" "{\"id\":6,\"name\":\"New Found Glory\"}" | |
1390427014.807028 [0 127.0.0.1:55407] "hset" "music:items:docs" "7" "{\"id\":7,\"name\":\"Alejandro Fern\xc3\xa1ndez\"}" | |
1390427014.808241 [0 127.0.0.1:55407] "sadd" "music:items:keys" "music:items:compl:m" | |
1390427014.808293 [0 127.0.0.1:55407] "sadd" "music:items:keys" "music:items:compl:etallica" | |
1390427014.808319 [0 127.0.0.1:55407] "sadd" "music:items:keys" "music:items:compl:me" |
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 internals = { | |
resources: { | |
users: { | |
index: function (request, reply) { | |
reply('ok'); | |
} | |
} | |
} | |
}; |
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 Hapi = require('hapi'); | |
var serverOptions = { | |
views: { | |
engines: { | |
jade: 'jade' | |
}, | |
path: 'views' | |
} | |
}; |
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 http = require('http'); | |
var s = http.createServer(function(req,res){ | |
res.writeHead(200,{'content-type' : 'text/plain'}); | |
res.write('hello'); | |
setTimeout(function(){ | |
res.end("world\n") | |
},2000); | |
}); | |
s.listen(3000); |
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
Person.extendModel({ | |
all: function () { | |
var stream = new Readable({ objectMode: true }); | |
stream.push({ test: true}); | |
stream.push(null); | |
return stream; | |
} | |
}); |