Skip to content

Instantly share code, notes, and snippets.

View Googulator's full-sized avatar

Googulator

  • I don't work for QuickHeal, despite what myce.com claims.
View GitHub Profile
@Googulator
Googulator / fauxltair.json
Last active April 27, 2025 03:16
Fauxltair 8800 for Nandgame
{
"NandGame:Levels:ASSEMBLER1": {
"code": "# Assembler code \nD = 1\nLABEL loop\nA = 0x7FFF\n*A = D\n*A = D + 1\nA = loop\nJMP\n"
},
"NandGame:CustomComponent:3": {
"key": "3",
"name": "shl 8",
"inputs": [],
"outputs": [],
"diagram": {
@Googulator
Googulator / haskell.scm
Last active December 24, 2024 04:26
Haskell bootstrap progress
;;; Run this with guix time-machine --commit=c5e63e1 -- build --system=i686-linux -f haskell.scm
;;; --system=x86_64-linux is currently broken
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015, 2016 Federico Beffa <[email protected]>
;;; Copyright © 2015 Siniša Biđin <[email protected]>
;;; Copyright © 2015 Paul van der Walt <[email protected]>
;;; Copyright © 2015, 2019 Eric Bavier <[email protected]>
;;; Copyright © 2016, 2018, 2019, 2021 Ludovic Courtès <[email protected]>
;;; Copyright © 2016, 2017 Nikita <[email protected]>
./TestRustcBootstrap.sh
=== Building stage0 rustc (with libstd)
make: Entering directory '/home/googulator/mrustc/run_rustc'
cp ../output-1.74.0/rustc output-1.74.0/prefix-s/bin/rustc
cp ../output-1.74.0/rustc output-1.74.0/prefix-2/bin/rustc
cp ../output-1.74.0/cargo output-1.74.0/prefix/bin/cargo
[create] output-1.74.0/prefix/cargo_home/config
[MINICARGO] ../rustc-1.74.0-src/library/std > output-1.74.0/prefix-s/lib/rustlib/x86_64-unknown-linux-gnu/lib/
mkdir -p output-1.74.0/prefix-s/lib/rustlib/x86_64-unknown-linux-gnu/lib/
warning: ../rustc-1.74.0-src/vendor/object/Cargo.toml:33: Unknown key `resolver` in [package]
#!/usr/bin/bash
# Source the environment:
. /steps/bootstrap.cfg
. /steps/env
. /steps/helpers.sh
# enable the loopback interface, which guix needs
ip link set lo up
@Googulator
Googulator / parse-preprocessed.c
Created April 14, 2024 22:18
parse.c before and after preprocessing
# 1 "parse.c"
# 74 "parse.c"
# 1 "flexdef.h" 1
# 37 "flexdef.h"
# 1 "/usr/include/stdio.h" 1
@Googulator
Googulator / Makefile
Created April 13, 2024 23:27
byacc Makefile.old updated for modern byacc
DEST = .
HDRS = defs.h
CFLAGS = -O -DNDEBUG
LDFLAGS =
LIBS =
@Googulator
Googulator / bare-metal-live-bootstrap-gentoo.sh
Last active February 21, 2024 17:40
Gentoo bootstrap on bare metal live-bootstrap (WIP)
# vim:set textwidth=0:
# This guide uses live-bootstrap instead of the old chain
# Modified from https://mid-kid.root.sx/git/mid-kid/bootstrap/src/branch/master/gentoo-2024/gentoo.txt
# NOTE: Not really a shell script, only named .sh for syntax highlighting
# live-bootstrap version: 60ec9ea80ceddd9f7394c2f595fce879ef073009 (Sun Feb 18 17:34:12 2024 +0100)
# LFS version: 12.0
# Gentoo version: 20240201
@Googulator
Googulator / xz.diff
Created February 8, 2024 00:10
Live-bootstrap with XZ
diff --git a/seed/seed.kaem b/seed/seed.kaem
index 68ae36a..b95242f 100755
--- a/seed/seed.kaem
+++ b/seed/seed.kaem
@@ -30,6 +30,7 @@ cp /${ARCH_DIR}/bin/sha256sum ${BINDIR}/sha256sum
cp /${ARCH_DIR}/bin/unbz2 ${BINDIR}/unbz2
cp /${ARCH_DIR}/bin/ungz ${BINDIR}/ungz
cp /${ARCH_DIR}/bin/untar ${BINDIR}/untar
+cp /${ARCH_DIR}/bin/unxz ${BINDIR}/unxz
cp /${ARCH_DIR}/bin/cp ${BINDIR}/cp
@Googulator
Googulator / M2-Planet.diff
Last active February 8, 2024 03:09
build environment for stage0 unxz
diff --git a/M2libc b/M2libc
index de7c75f..479d53d 160000
--- a/M2libc
+++ b/M2libc
@@ -1 +1 @@
-Subproject commit de7c75f144176c3b9be77695d9bf94440445aeae
+Subproject commit 479d53d78cb46f2da6efdad18e1cc87a46cce097
@Googulator
Googulator / lb0205.patch
Created February 5, 2024 03:59
live-bootstrap-nofilelist.patch
diff --git a/builder-hex0 b/builder-hex0
--- a/builder-hex0
+++ b/builder-hex0
@@ -1 +1 @@
-Subproject commit d49733d3e89538b2845f2be90ca6839deabf0042
+Subproject commit d49733d3e89538b2845f2be90ca6839deabf0042-dirty
diff --git a/lib/generator.py b/lib/generator.py
index 272f89f..1828fc6 100755
--- a/lib/generator.py
+++ b/lib/generator.py