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
#!/usr/bin/env node
/* vim: set ts=8 sts=8 sw=8 noet: */
var mod_assert = require('assert-plus');
var mod_util = require('util');
var mod_parse5 = require('parse5');
var mod_jsprim = require('jsprim');
var mod_verror = require('verror');
var VE = mod_verror.VError;
package illumos;
/*
#include <stdlib.h>
#include <zone.h>
*/
import "C";
import "unsafe";
func Getzoneid() (zoneid int) {
{
ASTEROID INVADERS ][
Designed and Coded by
Joshua Clulow
Current Version: 5.0
This program is freeware and
is Intellectual Property of
#!/bin/bash
set -o errexit
set -o pipefail
stamp=$(date +%s)
mkdir "/var/tmp/inspect_moray.$stamp"
cd "/var/tmp/inspect_moray.$stamp"
/*
* Copyright 2016 Joyent, Inc.
*/
#include <stdlib.h>
#include <node_version.h>
#include <errno.h>
#include <sys/utsname.h>
#include "v8plus_glue.h"
/*
* 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:
{
"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"
},
#!/usr/bin/env node
var ESC = '\u001b';
var CSI = ESC + '[';
var L0 = [' ', ' # ', ' # ', ' #'];
var L1 = [' ', ' # ', ' # ', ' # '];
var L2 = [' ', ' # ', ' # ', ' # '];
var L3 = [' ###### ', ' # ', ' # ', ' # '];
var L4 = [' ', ' # ', ' # ', ' # '];
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) \

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: