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/bash | |
if ! [ $3 ] ; then | |
echo "$0 <SOURCE POOL/DATASET> <TARGET_HOST> <TARGET POOL/DATASET>" | |
exit 1 | |
fi | |
SRC=$1 | |
TARGET_HOST=$2 | |
DST=$3 |
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
http://phillyfoodie.com/post/1568443917/stocking-up-preggie-prep-gnocchi | |
http://phillyfoodie.com/post/2700115516/monkey-bread-the-traditional-holiday-treat | |
http://phillyfoodie.com/post/4365341672/turkey-grandmere | |
http://phillyfoodie.com/post/11719056200/ginger-pineapple-salad | |
http://phillyfoodie.com/post/136887454/6-cans-a-pound-of-chicken-5-dinners |
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
#!/usr/bin/bash | |
# | |
# derek@joyent.com | |
# determines if server has cstates enabled or not | |
SERVER=`hostname`; | |
VAR=`/usr/sbin/dtrace -q -n ' | |
fbt:unix:cpupm_next_cstate:entry |
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
# It's important to convert the vbox image (VMDK or VDI or whatever) using | |
# the same version of VirtualBox that created it. You can try converting the image | |
# with qemu-img or kvm-img, but weird version mismatches will possibly make it not | |
# work. | |
# On your VirtualBox machine: | |
cd $VBOX_ROOT/$MACHINE_ROOT/ | |
VBoxManage clonehd machine.vmdk machine.img --format RAW | |
scp machine.img root@kvm-host:/somewhere |
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/sdc-dsimport openbsd-5.0-gateway.dsmanifest | |
Importing Dataset defined in 'openbsd-5.0-gateway.dsmanifest'. | |
Checking dataset file '/var/tmp/openbsd-5.0-gateway.zvol.bz2' sha1. | |
Copy dataset file to datasets dir, '/usbkey/datasets/openbsd-5.0-gateway.zvol.bz2'. | |
Registering dataset b5de0960-592f-11e1-8536-a7811176bc79 (sdc:admin:openbsd-5.0-gateway:1.0) with MAPI. |
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
{ | |
"hostname": "test1", | |
"alias": "test1", | |
"brand": "ipkg", | |
"autoboot": "true", | |
"default_gateway": "10.0.1.1", | |
"dns_domain": "local", | |
"dataset_uuid": "templates/oi-151a", | |
"nics": [ | |
{ |
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@00-0c-29-a1-8b-9d ~]# cat /etc/motd | |
- SmartOS Live Image v0.147+ build: 20120113T013514Z | |
[root@00-0c-29-a1-8b-9d ~]# uname -a | |
SunOS 00-0c-29-a1-8b-9d 5.11 joyent_20120113T013514Z i86pc i386 i86pc | |
[root@00-0c-29-a1-8b-9d ~]# zlogin test1 | |
[Connected to zone 'test1' pts/3] | |
Last login: Tue Jan 24 04:03:39 on pts/3 | |
OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 | |
root@test1:~# cat /etc/release | |
OpenIndiana Development oi_151a X86 |
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/bash | |
if ! [ $3 ] ; then | |
echo "$0 <SOURCE POOL/DATASET> <TARGET_HOST> <TARGET POOL/DATASET>" | |
exit 1 | |
fi | |
SRC=$1 | |
TARGET_HOST=$2 | |
DST=$3 |
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
# Grab any zfs data from "zfs get" | |
#zfs = Mash.new | |
#popen4("zfs get -p -H all") do |pid, stdin, stdout, stderr| | |
# stdin.close | |
# stdout.each do |line| | |
# next unless (line =~ /^([^\t]+)\t([^\t]+)\t([^\t]+)\t([^\t]+)$/) | |
# filesystem = $1 | |
# zfs[filesystem] = Mash.new unless zfs.has_key?(filesystem) | |
# zfs[filesystem][:values] = Mash.new unless zfs[filesystem].has_key?('values') | |
# zfs[filesystem][:sources] = Mash.new unless zfs[filesystem].has_key?('sources') |
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
# This document describes updating the SmartOS boot_archive and /usr volumes. | |
# | |
# The boot_archive effectively contains /. If you want to make changes to SMF | |
# or so forth, you need to update the boot_archive. | |
# | |
# If you want to add things to /usr, such as drivers, you will need to update | |
# usr.lgz. It is compressed, so note the lofiadm -U and -C calls below. Once | |
# you have updated usr.lgz you will need to copy it back to the mounted | |
# boot_arhive. | |
# |