Skip to content

Instantly share code, notes, and snippets.

@avoidik
avoidik / README.md
Last active March 20, 2025 09:28
Run Windows 11 IoT ARM on Mac M1 or similar

How to run Windows on Mac

We're going to run Windows 11 IoT (ARM) on Mac M1 (ARM) using the native binary translation, thanks to up-to-date version of qemu which has native hardware support.

Prerequisites

Install qemu and required tools (coreutils - we need truncate/gtruncate, dd/gdd CLI tools, samba - to share files between host and guest VM).

$ brew install qemu coreutils samba
@rsms
rsms / macos-distribution.md
Last active April 21, 2025 04:05
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@steven-michaud
steven-michaud / ThirdPartyKexts.md
Last active April 22, 2025 17:07
Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

As of macOS 12 (Monterey), Apple's Virtualization framework has nice support for macOS guest virtual machines, but with severe limitations: For example you can't install a macOS guest on Intel Macs, install guests with newer versions of macOS than the host, copy and paste between the host and the guest, or install third party kernel extensions in the guest. As usual for Apple, the functionality they do support is nicely implemented, but they've left out so much that the result is only marginally useful -- at least compared to

@scyto
scyto / proxmox.md
Last active April 27, 2025 10:37
my proxmox cluster

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@peternguyen93
peternguyen93 / arch_linux_uefi_m1.md
Last active May 8, 2023 20:14
Install ArchLinux ARM64 UEFI boot on Apple Silicon Virtualization.framework

Install ArchLinux UEFI on M1 Virtualization.framework

1. Preparation

  • ISO gentoo aarch64 installation
  • tart a command line to create and run Virtual Machine in command line.

2. Setup

  • Create virtual machine with tart and boot into Gentoo Linux
tart create —linux archlinux
tart run --disk ./install-arm64-minimal-20221218T221711Z.iso archlinux
@ethankhall
ethankhall / Dockerfile
Last active June 4, 2023 09:43
Sorbet Linux-ARM build
# syntax=docker/dockerfile:1.4
FROM gusto/ruby:2.7.6-ubuntu20.04 as build
ARG GIT_TAG=0.5.10458.20220926130158-4007ec60a
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN <<END_OF_RUN
set -ex
apt-get update
apt-get install -y software-properties-common
@astreknet
astreknet / OpenBSD_on_Apple_M2_QEMU.md
Last active October 25, 2024 21:27
OpenBSD on Apple M2 with QEMU

OpenBSD on Apple M2 with QEMU

Minimalist installation of OpenBSD on the Apple M2 using QEMU

Ingredients

Installation

  1. install QEMU with Homebrew brew install qemu, also possible with MacPorts
  2. Write a script with execute permissions chmod +x qemu_aarch64_install_openbsd.sh for installing the image.
@wabrit
wabrit / GraphQLPactV3.ts
Created June 24, 2022 14:06
POC for GraphQL DSL for Pact-JS V3
import {
MatchersV3,
PactV3,
PactV3Options,
V3Request,
V3Response,
GraphQLVariables
} from '@pact-foundation/pact';
import { gql } from '@apollo/client/core';
import { ASTNode, print } from 'graphql';
@SHi-ON
SHi-ON / decode_base64.py
Created March 15, 2022 17:01
Decode HTML files with inline Base64 images and store the image files separately.
import base64
import mimetypes
import os
from bs4 import BeautifulSoup
with open('example.html', 'rb') as file_handle: # Read in as a binary file
soup = BeautifulSoup(file_handle)
@martinwoodward
martinwoodward / mermaid.md
Created February 11, 2022 20:34
GitHub HTML Rendering Pipeline
```mermaid
sequenceDiagram
    participant dotcom
    participant iframe
    participant viewscreen
    dotcom->>iframe: loads html w/ iframe url
    iframe->>viewscreen: request template
    viewscreen->>iframe: html & javascript
 iframe-&gt;&gt;dotcom: iframe ready