Skip to content

Instantly share code, notes, and snippets.

View cellularmitosis's full-sized avatar

Jason Pepas cellularmitosis

View GitHub Profile
@cellularmitosis
cellularmitosis / README.md
Last active July 14, 2025 15:13
Factorio "Gleba start" iron + copper factory

Factorio Iron and Copper factories for "Gleba start"

I'm using the "Any planet start" mod for Factorio to force myself to really understand Gleba.

These blueprints produce half a belt of iron and copper, with a little power plant as well.

These use minimal technology (you'll need to research assembler 2's), but still have some nice circuit tricks, bootstrapping by dropping about 200 spoilage in each wooden box, plus some fuel in the power plant (with automatic restart if fruits get interrupted).

No unprocessed Yumako and Jelly Nut are used directly, ensuring the seed ratio stays positive. However, you'll need to implement some sort of control on your Agricultural towers to ensure you don't overproduce and allow fruit to rot.

@cellularmitosis
cellularmitosis / README.md
Last active May 8, 2025 15:56
A stdin-stdout passthrough which ignores SIGPIPE

Blog 2025/5/8

<- previous | index

A stdin-stdout passthrough which ignores SIGPIPE

One of the problems with using bash's set -o pipefail is that a command may fail with SIGPIPE if the next command in the pipepine exits before receiving all of its input.

@cellularmitosis
cellularmitosis / README.md
Last active May 8, 2025 15:56
A demo of Python 3.10's match statement

Blog 2025/4/11

<- previous | index | next ->

A demo of Python 3.10's match statement

Python's match statement is more powerful than I had at first realized.

@cellularmitosis
cellularmitosis / README.md
Last active April 11, 2025 21:06
Running an x86_64 Terminal.app on arm64 Macs
@cellularmitosis
cellularmitosis / README.md
Last active April 10, 2025 18:37
A simple Python function to parse command line arguments
@cellularmitosis
cellularmitosis / README.md
Last active April 10, 2025 16:19
A general-purpose symbolic expression parser in Python
@cellularmitosis
cellularmitosis / README.md
Last active April 10, 2025 00:49
Modifying the MIPS Creator CI20 default u-boot environment
@cellularmitosis
cellularmitosis / README.md
Last active April 9, 2025 18:44
Running the MIPS Creator CI20 from an SD card rootfs
@cellularmitosis
cellularmitosis / README.md
Last active April 8, 2025 19:18
dog-api.py

Blog 2024/2/24

<- previous | index | next ->

Dog API

This is a single-file, zero-dependency Python script which implements a paginated list/detail REST API suitable for practicing mobile development.

@cellularmitosis
cellularmitosis / README.md
Created January 14, 2025 07:57
The Wakizashi (15 launches)

See more cheap ships

The Wakizashi

The Wakizashi is a 13-furnace (equivalent), single-thruster, 8-tile-wide Factorio spaceship design. It can be built in 15 launches.

This is essentially a nuclear version of the Tanto.