Skip to content

Instantly share code, notes, and snippets.

View mcwehner's full-sized avatar

Michael Wehner mcwehner

View GitHub Profile
@mcwehner
mcwehner / compiling_groot_for_macos.md
Last active September 10, 2023 01:30
Compiling Groot (v1) for Mac OS (arm64)

How to Compile Groot (v1) for Mac OS

DISCLAIMER: Don't follow these instructions. Here's some excellent reasons why:

  • As I write this, I currently have less than 24 hours of experience using cmake as a developer, rather than as just a user. I can already see that some of the steps below are not needed and/or not the correct way of doing things (for example, don't edit CMakeLists.txt just to change options already exposed to the user).
  • I do have some experience maintaing taps and formulae for Homebrew, and am pretty confident in saying that creating your own tap with a copy of an existing formula without even changing the name is a really bad idea for lots of reasons, and probably will break a lot of stuff. This is an act of laziness by me.
  • If you didn't even read the first (non-heading) sentence of this file, then you're not reading this either. For everyone else though, remember: the purpose of this file is to function as Notes to Self, nothing more. Build on the steps below, don't foll
@mcwehner
mcwehner / lenovo_chromebook-linux_install.md
Created May 4, 2022 03:28
Linux installation on Lenovo Ideabook Duet (Chromebook)

The following steps are specific to the Lenovo Ideabook Duet. Due to the nature of the device having a detachable keyboard, these steps differ from other Chromebooks.

The goal of these steps is complete replacement of ChromeOS with a Linux distro of my choosing. This is not the same as the "Linux mode" or whatever it's called.

Sources:

  1. Power off the device.
  2. Hold down both volume buttons and the power button for about five seconds, then release.
@mcwehner
mcwehner / Retina Figures.ipynb
Created July 14, 2018 20:55 — forked from minrk/Retina Figures.ipynb
2x plots for Retina displays with matplotlib and the IPython Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mcwehner
mcwehner / LICENSE.txt
Created April 8, 2018 18:44 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@mcwehner
mcwehner / .block
Created March 24, 2018 17:26
Viz.js I
license: MIT
@mcwehner
mcwehner / .block
Last active March 18, 2018 19:53
CSS Paint I
license: MIT
@mcwehner
mcwehner / sha256.js
Created January 23, 2018 17:01
SHA-256 (`async`, `await`, `crypto.digest`, `TextEncoder`)
function hex (buffer) {
const hexCodes = [],
padding = '00000000',
view = new DataView(buffer);
for (var i = 0; i < view.byteLength; i += 4) {
const value = view.getUint32(i),
stringValue = value.toString(16),
paddedValue = (padding + stringValue).slice(-padding.length);
@mcwehner
mcwehner / .block
Last active December 15, 2017 17:02 — forked from mbostock/.block
Double-Click to Select All
license: gpl-3.0
@mcwehner
mcwehner / .block
Last active March 19, 2018 16:47
Tree Network
license: MIT
@mcwehner
mcwehner / .block
Last active September 18, 2017 01:26
Overlapping Rectangles I
license: MIT