Skip to content

Instantly share code, notes, and snippets.

View jclulow's full-sized avatar
🌃
Cats & kittens grab your mittens; taking you through the night & into the mystic

Joshua M. Clulow jclulow

🌃
Cats & kittens grab your mittens; taking you through the night & into the mystic
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jclulow on github.
  • I am jclulow (https://keybase.io/jclulow) on keybase.
  • I have a public key whose fingerprint is F01D EA55 53EE 4090 F7B0 F4BE 8404 1092 0FB1 C680

To claim this, I am signing this object:

diff --git a/incr-upgrade-scripts/README.md b/incr-upgrade-scripts/README.md
index a1d366e..60f052b 100644
--- a/incr-upgrade-scripts/README.md
+++ b/incr-upgrade-scripts/README.md
@@ -78,7 +78,8 @@ then you cannot run this step until you've added it.
cp -r /usbkey/default ./olddefault
cp -r /usbkey/scripts ./oldscripts
- cp -rP /opt/smartdc/bin ./oldtools
+ (cd /opt/smartdc && /usr/bin/tar cvf - bin lib man node_modules | gzip) \
#!/usr/bin/env node
var ESC = '\u001b';
var CSI = ESC + '[';
var L0 = [' ', ' # ', ' # ', ' #'];
var L1 = [' ', ' # ', ' # ', ' # '];
var L2 = [' ', ' # ', ' # ', ' # '];
var L3 = [' ###### ', ' # ', ' # ', ' # '];
var L4 = [' ', ' # ', ' # ', ' # '];
{
"category": "site",
"ident": "ghost",
"label": "ghost",
"start": "npm start --production",
"working_directory": "/var/www/ghost",
"environment": {
"HOME": "/home/ghost",
"PATH": "/opt/local/bin:/usr/bin:/usr/sbin:/sbin"
},
/*
* This utility uses "mdb -k" to dump out the KVM ring buffer
* for a particular VM. You must run it _BEFORE_ you kill or
* restart the qemu process. Output is to stdout, so direct
* that to a file -- it will be about ~500KB of JSON for a large
* VM.
*
* To run this:
*
* on SDC 6.X:
Index: Makefile.in
===================================================================
--- Makefile.in (revision 2063)
+++ Makefile.in (working copy)
@@ -1,3 +1,5 @@
+SHELL := @MAKE_SHELL@
+
# Support out-of-tree builds
srcdir := @srcdir@
VPATH := @srcdir@
#!/usr/bin/env ruby
#
# From the book...
# WRITE YOUR OWN ADVENTURE PROGRAMS FOR YOUR MICROCOMPUTER
# J. TYLER & L. HOWARTH
# USBORNE GAMEWRITER'S GUIDE
# ISBN 0 86020 741 2
#
# PORTED FROM BASIC TO RUBY BY
# JOSHUA M. CLULOW
@jclulow
jclulow / README
Created October 4, 2011 22:39
OpenIndiana 151a Automated Installer ISO Construction
Install:
pkg install install/distribution-constructor
Use:
distro_const ai_x86_image_JMC_151a.xml
Find the ISO image in the ZFS dataset you specified in the
XML file, which is "rpool/dc" by default.
@jclulow
jclulow / PLAN.md
Created November 25, 2011 04:53
Planning Document for a Move To Github for illumos-gate

Github for illumos-gate

Benefits

If we move to github for illumos we get various benefits:

  • Code Review through [Pull Requests][ghpr]
  • A Better Issue Tracker than Redmine
  • A Better Wiki than Redmine
@jclulow
jclulow / 01_sed.diff
Created November 25, 2011 22:26
sed -i handling (illumos)
diff --git a/usr/src/cmd/sed/main.c b/usr/src/cmd/sed/main.c
index 93e14bb..3a3f805 100644
--- a/usr/src/cmd/sed/main.c
+++ b/usr/src/cmd/sed/main.c
@@ -120,7 +120,7 @@ static char *getln(FILE *, size_t *);
int
main(int argc, char *argv[])
{
- int c, fflag;
+ int i, j, c, fflag;