Skip to content

Instantly share code, notes, and snippets.

View notmatt's full-sized avatar
⚛️
Friend of electrons

Matthew Smillie notmatt

⚛️
Friend of electrons
View GitHub Profile

Keybase proof

I hereby claim:

  • I am notmatt on github.
  • I am notmatt (https://keybase.io/notmatt) on keybase.
  • I have a public key whose fingerprint is 6EE4 6D70 F37F 8539 7D67 CA00 CE3B C8EA 7F86 6AE9

To claim this, I am signing this object:

Manatee Brain Transplant

The goal of this process is to upgrade a manatee of any vintage to Manatee v2. It relies on ZFS send/recv to replicate the data, but is limited to a migration between nodes in ONWM.

step 1. upgrade moray

Upgrading moray to a forward/backward compatible version is a prerequisite of the upgrade. The usual process is to disable one moray node, double-check the stack reconnects correctly, reprovision that node, and then repeat for other moray nodes.

If there is only one moray node deployed, deploying a second using the new image allows you to upgrade the original node as above.

OBJ::jsprint

Walk the graph from node/refId, reconstruct the object.

findjsobjects -p propname

select edges with name propname, list source nodes of those edges

findjsobjects -c CONSTRUCTOR,

@notmatt
notmatt / index.html
Created July 14, 2011 23:40
d3 bar graph leak test.
<html>
<head><title>Test</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.26.0"></script>
</head>
<body>
<div class="content"></div>
<script>
var t = 1297110663,
v = 70,
data = d3.range(33).map(next);
@notmatt
notmatt / index.html
Created July 18, 2011 21:21
another d3 leak test
<html>
<head><title>Test</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.26.0"></script>
</head>
<body>
<div class="content"></div>
<script>
var t = 1297110663,
v = 70,
data = d3.range(33).map(next);
@notmatt
notmatt / index.html
Created January 3, 2012 22:34 — forked from jasondavies/index.html
alpha-shapes aka concave hulls in d3
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Alpha-Shapes</title>
<script src="http://mbostock.github.com/d3/d3.min.js"></script>
<script src="http://mbostock.github.com/d3/d3.geom.min.js"></script>
<style type="text/css">
path {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Scratch</title>
<link href="../assets/css/bootstrap.css" rel="stylesheet">
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Scratch</title>
<link href="http://notmatt.github.com/scratch/bootstrap/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.7.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.7.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.7.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.chart.js?2.7.0"></script>
@notmatt
notmatt / index.html
Created April 2, 2012 17:25 — forked from scameron/index.html
Axis scale tick distribution example
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>bar</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<style type="text/css">
div {
border: 1px solid #BBB;
padding: 0px;
@notmatt
notmatt / bd_groups.js
Created April 8, 2012 06:38 — forked from mbecica/bd_groups.js
pack to force-directed transition
$(function() {
var w = $('#container').width()/2,
h = w,
format = d3.format(",d"),
fill = d3.scale.category20b(),
padding = 2,
radius = d3.scale.sqrt().range([0, 12]);
var vis = d3.select("#main").append("svg:svg")