Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block pwFoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio

Install WSL2

I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2

Compile Kernel

Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download and extract to a folder. The latest version of the kernel source is available at (

#!/usr/bin/env bash
set -eo pipefail
# from moby project - w/o go dependency (nailing amd64) and w/o jq dep (using
# python)
# hello-world latest ef872312fe1b 3 months ago 910 B
# hello-world latest ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9 3 months ago 910 B
# debian latest f6fab3b798be 10 weeks ago 85.1 MB
# debian latest f6fab3b798be3174f45aa1eb731f8182705555f89c9026d8c1ef230cbf8301dd 10 weeks ago 85.1 MB
straker / two-way-binding.js
Last active Nov 14, 2019
Simple and small two-way data binding between DOM and data
View two-way-binding.js
* @param {object} scope - Object that all bound data will be attached to.
function twoWayBind(scope) {
// a list of all bindings used in the DOM
// @example
// { '': [<input type="text" data-bind=""/>] }
var bindings = {};
// each bindings old value to be compared for changes
You can’t perform that action at this time.