Skip to content

Instantly share code, notes, and snippets.

View wezm's full-sized avatar

Wesley Moore wezm

View GitHub Profile
@jasonsnell
jasonsnell / jobs.txt
Last active June 3, 2025 01:13
Steve Jobs memo regarding Mac clones
Subject: Apple Acquires Power Computing
Sent: 9/2/97 7:34 AM
From: Steve Jobs, [email protected]
Reply-To: [email protected]
To: [email protected]
Today Apple is acquiring Power Computing for Apple common stock valued
at $100 million.
Let me explain why we are doing this:
@joske
joske / arch-yoga.md
Last active June 23, 2025 08:21
Arch Linux Arm on Lenovo Yoga Slim 7x (X elite)

Arch

This is the method I used to install Arch on the yoga slim 7x. This is from memory so I may have forgotten things

prerequisites

  • disable bitlocker in windows
  • resize the windows partition
  • disable secure boot in BIOS

installation

@mjrit
mjrit / feels_like_temp.md
Last active December 31, 2024 05:09
Home Assistant template for calculating BoM (Australia) "feels like" temperature

I use this in a Home Assistant Template helper so it's updated automatically when any of the source sensors update. This is based on the simplified formula documented by the BoM here: http://www.bom.gov.au/info/thermal_stress

Substitute your sensor names

  • YOUR_TEMP_SENSOR - degrees C
  • YOUR_HUMDITY_SENSOR - percentage
  • YOUR_WIND_SPEED_SENSOR - km/h
@snej
snej / missing_includes.rb
Created October 2, 2023 16:19
Script to find missing std #includes in C++ headers
#! /usr/bin/env ruby
#
# missing_includes.rb
# By Jens Alfke <[email protected]>
# Version 2.0 -- 2 Oct 2023
# Copyright 2021-Present Couchbase, Inc.
#
# This script scans C++ header files looking for usage of common standard library classes, like
# `std::vector`, without including their corresponding headers, like `<vector>`. It similarly looks
# for standard C functions like `strlen` that are used without including their header (`<cstring>`.)
@NovaAndrom3da
NovaAndrom3da / template.py
Last active September 8, 2023 03:46
chimera-linux/cports: rust-nightly
pkgname = "rust-nightly"
pkgver = "1.72.0"
pkgrel = 0
hostmakedepends = [
"cmake",
"curl",
"pkgconf",
"python",
"llvm-devel",
"llvm-tools",
@brendanzab
brendanzab / bidir-stlc.rs
Last active June 21, 2023 07:18
Bidirectional type checker for a simple functional language, in Rust
//! Bidirectional type checker for a simple functional language
use std::rc::Rc;
#[derive(Clone, PartialEq, Eq)]
enum Type {
Bool,
Int,
Fun(Rc<Type>, Rc<Type>),
}
@elfmimi
elfmimi / README.md
Created February 3, 2023 14:58
Old patch for OpenSK targeting Raytac MDBT50Q-RX dongle

Old patch for OpenSK targeting Raytac MDBT50Q-RX dongle

The revision I tried was the Initial commit (f91d2fd) .

OpenSK is using Tock as one of its submodules.

So you need to clone OpenSK and its submodules recursively.

After you have cloned it successfully, you should be able to find this directory.

@bramus
bramus / bookmarklet.md
Last active September 20, 2024 07:01
Mastodon User Page Bookmarklet
@TOTBWF
TOTBWF / MicroTT.ml
Last active July 5, 2025 22:58
A simple single-file elaborator for MLTT
(** Core Types *)
module Syntax =
struct
type t =
| Local of int
| Hole of string
| Let of string * t * t
| Lam of string * t
| Ap of t * t
| Pair of t * t

So it's been a while since I set up a #FreeBSD desktop from scratch, and things have gotten easier? :rising-intonation: :confused-dog-face: Curious? Read on!

Maybe I overcomplicated things last time (you can see the script here https://bit.ly/freebsd-bootstrap), it seems some steps are now redundant. Anyway, here's the simplest way I know to get a capable desktop system set up.

I'm doing this on an M1 Mac with VMware Fusion Tech Preview and FreeBSD 13.1-RELEASE. After (or during) install create a user and add it to the groups video, wheel and operator with

% pw usermod $USER -G wheel,operator,video