View fork arguments
1 2 3 4 5 6 7 8 9
> sudo dtrace -n '::forksys:entry / pid == $target / { printf("%d %d", arg0, arg1); }' -p 7580
CPU ID FUNCTION:NAME
5 13517 forksys:entry 0 0
5 13517 forksys:entry 0 0
5 13517 forksys:entry 0 0
5 13517 forksys:entry 0 0
7 13517 forksys:entry 0 0
0 13517 forksys:entry 0 0
0 13517 forksys:entry 0 0
View gist:99ae1591340be381f868
1 2 3 4 5 6 7 8 9 10
DELETE joininess-product
DELETE joininess-save
DELETE joininess-user
 
PUT joininess-product
PUT joininess-save
PUT joininess-user
 
DELETE joininess-product/_mapping/product
GET joininess-product/_mapping/product
View gist:061f95d3c159b1a7a315
1 2 3 4 5 6 7
# global zone
 
MAC_ADDRESS=$(dladm show-phys -m e1000g1 | tail +2 | awk '{ print $3 }')
ZONENAME=$(zoneadm list | grep -v global)
 
nictagadm add external "${MAC_ADDRESS}"
echo '{"add_nics":[{"nic_tag":"external","ip":"dhcp"}]}' | vmadm update ${ZONENAME}
View forking_off_cpu.d
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/dtrace
 
syscall::forksys:entry
/pid == $target/
{
self->tracing = 1;
}
 
syscall::forksys:return
/pid == $target/
View smartos_vagrant.md

1) Install Vagrant

2) Install SmartOS guest detection

vagrant plugin install vagrant-smartos-guest

3) Install zones support

View omnifuss.sh
1 2 3 4 5 6 7 8 9 10
pkgin -y install ruby193 gmake build-essential ;
gem install bundler --no-ri --no-rdoc
pushd /root
git clone https://github.com/opscode/omnibus-ruby
git clone https://github.com/opscode/omnibus-software
git clone https://github.com/opscode/omnibus-chef
pushd omnibus-chef
bundle install --binstubs
/root/omnibus-chef/bin/omnibus build project chef
View 00_README.md

UPDATE: this has been made slightly more official by way of turning it into a repo: https://github.com/sax/vagrant-smartos-packager

Notes:

  • This will create files on the local disk
  • You'll probably want to create and cd into a working directory before doing any of this
  • This is very much a work in progress. This gist is to capture lots of tiny changes in code, without managing the horrible git history that would ensue in a real git repo. Once this works to completion, it's going into a github repo.

On local machine, download the latest SmartOS platform image and turn it into a virtualbox image:

View omnibus-chef-stderr.txt
1 2 3 4 5 6 7 8 9 10
[health_check] *** Health Check Failed, Summary follows:
[health_check] *** The following Omnibus-built libraries have unsafe or unmet dependencies:
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/readline.so
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/psych.so
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/openssl.so
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/iconv.so
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/sha2.so
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/sha1.so
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/rmd160.so
[health_check] --> /opt/chef/embedded/lib/ruby/1.9.1/x86_64-solaris2.11/digest/md5.so
View carbon-cache.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
# Simple Ad Hoc Carbon Cache Service
#
# put in /opt/custom/share/svc/carbon-cache.sh
set -o xtrace
. /lib/svc/share/smf_include.sh
cd /
PATH=/usr/sbin:/usr/bin:/opt/custom/bin:/opt/custom/sbin; export PATH
View bashrc
1
export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
Something went wrong with that request. Please try again.