Skip to content

Instantly share code, notes, and snippets.

View patrickjholloway's full-sized avatar

Patrick Holloway patrickjholloway

View GitHub Profile
@patrickjholloway
patrickjholloway / vsock-macos-research.md
Created August 22, 2026 02:03
vsock on macOS: QEMU/HVF vs Virtualization.framework vs libkrun — research notes, Aug 2026

vsock on macOS: QEMU/HVF vs Virtualization.framework vs libkrun

Research notes, August 2026. Question: can a guest VM on a macOS host reach the host over AF_VSOCK, and specifically can the guest initiate that connection?

QEMU on macOS: no — and it's four independent blockers, not one

  1. Homebrew ships vhost-user compiled out. Not a Homebrew choice — meson.build:223 has .disable_auto_if(host_os != 'linux'), so the auto feature silently resolves to disabled on Darwin. The formula never passes --enable-vhost-user, so it follows mechanically.
  2. The enabling patches never merged. Garzarella's series mostly landed in QEMU 9.1 — including memory-backend-shm — but the three that flip the default (vhost-user: enable frontends on any POSIX system, libvhost-user, contrib/vhost-user-blk) are still only on his GitLab branch, verified absent from master and every release through 11.1.0. Stuck ~2 years on one flaky vhost-user/reconnect qtest that fails on FreeBSD and *frequently on mac
@patrickjholloway
patrickjholloway / levi-install.sh
Last active August 15, 2026 23:15
Levi - macOS install and uninstall bootstrap
#!/usr/bin/env bash
# Levi Installation Script
# Usage: curl -fsSL https://get.levi.sh | sh
#
# Detects Node.js, then launches the canonical installer.
set -euo pipefail
# ── Colors ────────────────────────────────────────────────────────────────────
@patrickjholloway
patrickjholloway / install.sh
Last active June 20, 2026 23:53
Levi Installation Script
#!/usr/bin/env bash
# Levi Installation Script
# Usage: curl -fsSL https://gist.github.com/patrickjholloway/fee78be2b6f25ef8a901ff41ababd940 | sh
#
# Detects Node.js, then launches the interactive TUI installer.
# For the legacy sequential installer: bash install-legacy.sh
set -euo pipefail
# ── Colors ────────────────────────────────────────────────────────────────────
@patrickjholloway
patrickjholloway / latest-mmio-api.json
Last active February 18, 2024 22:57
latest-mmio-api.json
{
"openapi": "3.0.0",
"paths": {
"/api/auth/login": {
"post": {
"operationId": "AuthController_login",
"parameters": [],
"requestBody": {
"required": true,
"content": {
#!/bin/zsh
cp -a . ../old-console
mkdir ../stashes
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }'
cd ..
rm -rf ./console
git clone git@github.com:Kinvey/console.git
cd ./console
#!/bin/zsh
mkdir ../stashes
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }'
cd ..
rm -rf ./console
git clone git@github.com:Kinvey/console.git
cd ./console
#!/bin/zsh
mkdir ../stashes
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }'
cd ..
rm -rf ./console
git clone git@github.com:Kinvey/console.git
cd ./console
@patrickjholloway
patrickjholloway / datalinks.json
Last active March 24, 2017 15:14
/datalinks json response body
@patrickjholloway
patrickjholloway / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
fetchUserCount: function(){
Ember.$.getJSON('/s/1.json', function(data){
userData = JSON.parse(data);
this.content.set('userCount', userData.count); // or whatever your json contains
});
window.setTimeout(this.fetchUserCount, 5000);