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
@notmatt
notmatt / covid.md
Created October 11, 2020 05:08
This is actually a Calca file in case anyone uses that. Pretty great program.

Covid vaccination scenarios

For basic model/math, see: https://academic.oup.com/cid/article/52/7/911/299077

It also provides a good definition of "herd immunity", which is a cumulative incidence of 0 over the lifetime of an unvaccinated individual. I.e., even if you can't get vaccinated, you are extraordinarily unlikely to catch the disease.

That also suggests a good definition for "back to normal" -- to wit, that we go back to our previous chance of catching Covid, zero.

Critical vaccination threshold for herd immunity for a given R0 and E:

@notmatt
notmatt / _cnchi.log
Last active February 17, 2018 23:56
cnchi.log, testing #848
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Updating community database
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Updating multilib database
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Getting package list...
2018-02-17 23:19:18 [INFO] slides.py(276) manage_events_from_cb_queue(): Creating the list of packages to download...
2018-02-17 23:19:24 [DEBUG] zfs.py(693) run_format(): Configuring ZFS in /dev/nvme0n1
2018-02-17 23:19:24 [DEBUG] run_cmd.py(104) call(): pool: bonwick
id: 12437320381871438623
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
@notmatt
notmatt / cornellcs.txt
Created March 31, 2016 23:29 — forked from bcantrill/cornellcs.txt
An old e-mail to the Cornell CS faculty; have things changed in the last 12 years?
From bmc Mon Oct 2 15:12:34 2000
Subject: Undergrad systems curriculum
To: faculty@cs.cornell.edu
Date: Mon, 2 Oct 2000 15:12:34 -0700 (PDT)
X-Mailer: ELM [version 2.4ME+ PL31H (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 4065
Status: RO

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,

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.

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:

@notmatt
notmatt / hello.c
Last active December 27, 2015 06:39 — forked from AlainODea/hello.c
#include<stdio.h>
main()
{
printf("Hello World");
}
@notmatt
notmatt / gist.md
Last active December 19, 2015 12:29

Gist, Y U NO USE GITHUB MARKDOWN?

Sample from github help

The next paragraph contains two phrases separated by a single newline character:

Roses are red
Violets are blue
@notmatt
notmatt / Gastown.md
Created July 31, 2012 18:19
Pedestrianize Gastown!

Pedestrianize Gastown

Who?

Everyone I've met in the neighbourhood, which isn't many all things considered, but there are ways to find this out.

So: how do we find this out?

Start a petition.

@notmatt
notmatt / gist:2897994
Created June 8, 2012 20:29 — forked from silentrob/gist:2897913
Broken code.
FMWK = { 'hulk' : 'smash' }
FMWK.button = function() {
  var _this = this;
console.log(this.hasOwnProperty('hulk') ? "HULK SMASH" : "");
this.el = document.createElement('button');
  ['hide','show'].forEach(function(method){
    FMWK.button.prototype[method] = function(){
      $(_this.el)[method].apply($(_this.el), Array.prototype.slice.call(arguments));
     }
  });