Skip to content

Instantly share code, notes, and snippets.

View quad's full-sized avatar
🏴‍☠️

Scott Robinson quad

🏴‍☠️
View GitHub Profile
@longjoel
longjoel / gist:136db4cc8105f1cb16ec3011c071659a
Created September 25, 2026 21:53
Virtual On 2 player in mame
--- a/src/mame/sega/segabill.cpp
+++ b/src/mame/sega/segabill.cpp
@@ -135,4 +135,3 @@
ROM_START( billboard )
ROM_REGION(0x10000, "billcpu", 0)
- ROM_LOAD("epr-18022.ic2", 0x00000, 0x10000, CRC(0ca70f80) SHA1(edf5ade72d9fa2f4d5f83f9f89e6cecfadd77f56))
ROM_END
----
#!/usr/bin/env bash
@typeswitch-dev
typeswitch-dev / daiyon.c
Last active January 2, 2026 17:03
第四 (Daiyon) — a Japanese & Forth inspired postfix language
#include <stdio.h>
#include <string.h>
#include <assert.h>
FILE *in; long M[1<<24]={0}, *D, *R, H=0x130000, IP=0, T;
long getu() { long t, h = getc(in); if (h < 0xC0) return h;
t = ((h&0x1F) << 6) | (getc(in) & 0x3F); if (h < 0xE0) return t;
t = ( t << 6) | (getc(in) & 0x3F); if (h < 0xF0) return t;
t = ( t << 6) | (getc(in) & 0x3F); return t & 0x1FFFFF; }
void putu(long c) { if (c < 0x80) { putchar(c); return; }
if (c < 0x7FF) { putchar(0xC0|(c>>6)); } else {
@BretFisher
BretFisher / docker-for-mac.md
Last active November 2, 2026 15:23
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@jnape
jnape / who_does_the_deployment.pro
Created August 6, 2013 05:29
ThoughtWorks P2, Issue 03 Puzzle Solution
% The person who has to deploy to Mobile is not Max or Sam
% Neither Max or Charlie are fans of Copying Files
% The one who deploys quarterly does so to a Mobile target
% Andy deploys weekly
% The person making use of a third party PAAS is not Andy or Charlie
% Sam is either the Copying Files or the System Package enthusiast
% The person who makes VM Images is not Charlie and doesn’t own deploy to a PAAS
% The person who deploys to the PAAS is does so more frequently than the person who deploys to the Desktop
% Of the System Packaging fan and Charlie, one deploys monthly and the other deploys to Mobile
% The person who deploys to the IAAS is not Max