Notes on snapshots, images, and migrations
# Create zone
vmadm create <<EOL
{
"brand": "joyent",
.| #!/usr/bin/env bash | |
| # Loads and mounts an ISO over SMB via the | |
| # SuperMicro IPMI web interface | |
| # | |
| # usage: supermicro-mount-iso.sh <ipmi-host> <smb-host> <path> | |
| # e.g.: supermicro-mount-iso.sh 10.0.0.1 10.0.0.2 '\foo\bar\windows.iso' | |
| set -x |
| class Sudoku | |
| SIZE = 9 | |
| NUMBERS = (1..9).to_a | |
| def initialize | |
| @board = Array.new(SIZE) { Array.new(SIZE, nil) } | |
| end | |
| def [](x, y) | |
| @board[y][x] |
| !function() { | |
| var doc = document, | |
| htm = doc.documentElement, | |
| lct = null, // last click target | |
| nearest = function(elm, tag) { | |
| while (elm && elm.nodeName != tag) { | |
| elm = elm.parentNode; | |
| } | |
| return elm; | |
| }; |