Skip to content

Instantly share code, notes, and snippets.

bcUtils.dump = function(o, lvl) -- {{{ Small function to dump an object.
if lvl == nil then lvl = 5 end
if lvl < 0 then return "SO ("..tostring(o)..")" end
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if k == "prev" or k == "next" then
s = s .. '['..k..'] = '..tostring(v);
else
@blind-coder
blind-coder / gist:4948038
Last active December 13, 2015 17:29
Quick'n'dirty howto on getting gitlab up and running in a smartos zone.
# Install necessary packages
pkgin up
pkgin -y install \
bash \
coreutils-8.13nb4 \
curl \
gcc47-4.7.0nb2 \
gcc47-runtime-4.7.0nb2 \
gmake-3.82nb5 \
icu-49.1.1nb1 \
#!/bin/bash
#
# SCRIPT: do-smartmachine-dataset.sh
# AUTHOR: Mark Slatem
# DATE: 16 January 2013
# REV: 1.0
#
# PLATFORM: SmartOS
# REQUIREMENTS: SmartOS
#
2013-02-13 23:54:37 =ERROR REPORT====
** State machine {vm,<<"eef4d5b6-2932-45b7-912d-64e870a9677d">>} terminating
** Last event in was {create,[{<<"cpu_cap">>,200},{<<"name">>,<<"gitlab">>},{<<"quota">>,6144},{<<"ram">>,2048},{<<"requirements">>,[]},{<<"uuid">>,<<"6aa5463c-c8e0-40e2-92be-a13e1fdd2cb5">>},{<<"version">>,<<"0.1.0">>}],[{<<"dataset">>,<<"fdea06b0-3f24-11e2-ac50-0b645575ce9d">>},{<<"description">>,<<"Base image with core packages preinstalled">>},{<<"name">>,<<"base64">>},{<<"networks">>,[[{<<"gateway">>,<<"192.168.100.1">>},{<<"ip">>,<<"192.168.100.111">>},{<<"netmask">>,<<"255.255.255.0">>},{<<"nic_tag">>,<<"external">>}]]},{<<"os">>,<<"smartos">>},{<<"type">>,<<"zone">>},{<<"version">>,<<"1.8.4">>}],[{<<"admin_pw">>,<<"123">>},{<<"alias">>,<<"gitlab">>},{<<"hostname">>,<<"gitlab">>},{<<"metadata">>,[{}]},{<<"networks">>,[{<<"net0">>,<<"92a234f4-e86c-4d0f-a0c7-e9fd3cbdf3de">>}]},{<<"owner">>,<<"f373a3a1-8c38-4346-b6cd-6447a5290001">>},{<<"root_pw">>,<<"123">>}]}
** When State == initialized
*
2013-02-13 22:51:18 =ERROR REPORT====
** State machine {vm,<<"713d9bdd-6fc7-4bd7-b33d-6ad36d4af3b3">>} terminating
** Last event in was {create,[{<<"cpu_cap">>,200},{<<"name">>,<<"gitlab">>},{<<"quota">>,6144},{<<"ram">>,2048},{<<"requirements">>,[]},{<<"uuid">>,<<"6aa5463c-c8e0-40e2-92be-a13e1fdd2cb5">>},{<<"version">>,<<"0.1.0">>}],[{<<"dataset">>,<<"fdea06b0-3f24-11e2-ac50-0b645575ce9d">>},{<<"description">>,<<"Base image with core packages preinstalled">>},{<<"name">>,<<"base64">>},{<<"networks">>,[[{<<"gateway">>,<<"192.168.100.1">>},{<<"ip">>,<<"192.168.100.110">>},{<<"netmask">>,<<"255.255.255.0">>},{<<"nic_tag">>,<<"external">>}]]},{<<"os">>,<<"smartos">>},{<<"type">>,<<"zone">>},{<<"version">>,<<"1.8.4">>}],[{<<"admin_pw">>,<<"123">>},{<<"alias">>,<<"gitlab">>},{<<"hostname">>,<<"gitlab">>},{<<"metadata">>,[{}]},{<<"networks">>,[{<<"net0">>,<<"92a234f4-e86c-4d0f-a0c7-e9fd3cbdf3de">>}]},{<<"owner">>,<<"f373a3a1-8c38-4346-b6cd-6447a5290001">>},{<<"root_pw">>,<<"123">>}]}
** When State == initialized
*