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
function | |
Recipes() | |
{ | |
this.recipes = {}; | |
} | |
Recipes.prototype.getRecipe(name) = function | |
getRecipe(name) | |
{ | |
if (this.recipes[name] === undefined) { |
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
function filterNumbers(ceiling, opts, cb) { | |
var myObj = {}; | |
for (var i = 0, len = opts.factorsof.length; i < len; i++) { |
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
C:\Users\smith\git>go get -u github.com/joyent/containerpilot | |
# github.com/joyent/containerpilot/sup | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:38:3: undefined: syscall.SIGUSR1 | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:39:3: undefined: syscall.SIGUSR2 | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:45:5: undefined: syscall.Kill | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:47:5: undefined: syscall.Kill | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:49:5: undefined: syscall.Kill | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:50:9: undefined: syscall.SIGUSR1 | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:51:5: undefined: syscall.Kill | |
..\go\src\github.com\joyent\containerpilot\sup\sup.go:51:23: undefined: syscall.SIGUSR1 |
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
[root@c4-54-44-64-35-80 (bs-1) /zones/smith]# bhyve -m 4g -c 2 -s 4,ahci-cd,/zones/smith/2016.iso -s 5,fbuf,tcp=0.0.0.0:5900 -l bootrom,/usr/share/bhyve/uefi-csm-rom.bin test | |
fbuf frame buffer base: fffffd7feb800000 [sz 16777216] | |
Assertion failed: error == 0, file vga.c, line 1301 | |
Abort (core dumped) |
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 assert = require('assert-plus'); | |
function getFactors(ceiling, opts, callback) { | |
assert.number(ceiling, 'ceiling'); | |
assert.object(opts, 'opts'); | |
assert.array(opts.factorsof, 'opts.factorsof'); | |
assert.func(callback, 'callback'); | |
var myObj = {}; | |
for (var i = 0, len = opts.factorsof.length; i < len; i++) { |
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
1 export·MANTA_USER=username | |
2 export·MANTA_KEY_ID=keyid | |
3 export·MANTA_KEY_MATERIAL=path_to_key_material | |
4 export·MANTA_URL=manta_url |
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
[root@smartos01 /zones/smith]# imgadm list | |
UUID NAME VERSION OS TYPE PUB | |
d3a765d6-381c-11e8-a2f0-8b4f8f1f2cca debian-9 20180404 linux lx-dataset 2018-04-04 | |
[root@smartos01 /zones/smith]# uname -a | |
SunOS smartos01 5.11 joyent_20180329T002644Z i86pc i386 i86pc | |
root@c149701e-2df6-699c-ee55-bc690b53211f:~# nslookup google.com | |
../../../../lib/isc/unix/socket.c:2881: setsockopt(20, IP_RECVTOS) failed: Protocol not available | |
Server: 8.8.8.8 |
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
[root@smartos01 ~]# cat /zones/smith/ubunt-bhyve.json | |
{ | |
"brand": "bhyve", | |
"max_physical_memory": 2048, | |
"resolvers": ["8.8.8.8", "8.8.4.4"], | |
"vcpus": 2, | |
"ram": 2048, | |
"disks": [ | |
{ | |
"image_uuid": "0ed8e3fa-154e-4302-8d4e-d74f877dbf37", |
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
Boot Failed. CDROM 0 | |
Boot Failed. Harddisk 1 | |
!!!! X64 Exception Type - 000000000000000D CPU Apic ID - 00000000 !!!! | |
RIP - 000000007FAED1B8, CS - 0000000000000028, RFLAGS - 0000000000010002 | |
ExceptionData - 0000000000000000 | |
RAX - 0000000000000000, RCX - 0000000000000008, RDX - 0000000000000000 | |
RBX - 0000000000000004, RSP - 000000007FBDC8C8, RBP - 000000007FBDCC28 | |
RSI - 00000000C0000538, RDI - 000000007FBDC8C8 | |
R8 - 0000000000000001, R9 - 000000007FBDCE0C, R10 - 000000007F9FBE2C | |
R11 - 0000000000000013, R12 - 0000000000000000, R13 - 0000000000000000 |
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
sdc-sapi /instances -X POST -d@- <<EOM | |
{ | |
"uuid": "5000bbeb-26af-46b8-a0a7-e7f660bc6538", | |
"service_uuid": "96cc6cf2-1c1a-4e5e-848d-6ce98ced6e38", | |
"params": { | |
"alias": "amon0" | |
}, | |
"metadata": {}, | |
"type": "vm", | |
"exists": true |