Not sure if these count
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
> ::dmods -l | |
ld.so.1 | |
dcmd Bind - Display a Binding Descriptor | |
dcmd Callers - Display Rt_map CALLERS binding descriptors | |
dcmd Depends - Display Rt_map DEPENDS binding descriptors | |
dcmd ElfDyn - Display Elf_Dyn entry | |
dcmd ElfEhdr - Display Elf_Ehdr entry | |
dcmd ElfPhdr - Display Elf_Phdr entry | |
dcmd Groups - Display Rt_map GROUPS group handles |
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
#!/usr/sbin/dtrace -s | |
pid$1::*HandleScopeC1*:entry | |
{ | |
self->cone++; | |
} | |
pid$1::*HandleScopeD1*:entry | |
/self->cone/ | |
{ |
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 Hapi = require('hapi'); | |
var Good = require('good'); | |
var Reptile = require('reptile'); | |
var pack = new Hapi.Pack(); | |
pack.server(8000, { labels: ['web']}); | |
pack.server(8001, { labels: ['admin']}); | |
pack.register(Good, function (err) {}); |
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
server.route({ | |
method: 'GET', | |
path: '/user/{userId}', | |
config: { | |
handler: retrieveUser, | |
response: { | |
sample: 50, | |
schema: { | |
name: Joi.string().required(), | |
email: Joi.string().required().email() |
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
sortedRoutes = [ | |
'/', | |
'/user', | |
'/user/{userId}', | |
'/users/{userIds*}' | |
]; |
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
exports.register = function (plugin, options, callback) { | |
plugin.events.on('internalError', function (request, err) { | |
console.log(err); | |
}); | |
callback(); | |
}; |
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
exports.register = function (plugin, options, callback) { | |
plugin.expose('util', function () { | |
console.log('something'); | |
}); | |
callback(); | |
}; |
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
{ | |
"pack": { | |
"cache": "catbox-redis" | |
}, | |
"servers": [ | |
{ | |
"port": 8080, | |
"options": { | |
"labels": ["web"] | |
} |
> process.platform
'darwin'
> process.platform = 'huh'
'huh'
> process.platform
'darwin'
> process.version
'v0.11.13'