Skip to content

Instantly share code, notes, and snippets.

Jason Pepas cellularmitosis

Block or report user

Report or block cellularmitosis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Makefile
blink.hex: blink.elf
avr-objcopy -O ihex blink.elf blink.hex
blink.elf: blink.o
avr-gcc -DF_CPU=16000000 -mmcu=atmega328 -o blink.elf blink.o
blink.o: blink.c
avr-gcc -DF_CPU=16000000 -mmcu=atmega328 -o blink.o -c blink.c
flash: blink.hex
@cellularmitosis
cellularmitosis / compilers.md
Created May 16, 2020
A flashcard deck about Compilers.
View compilers.md

format: retainn-md-1

Compilers

Some flashcards about compilers.


In SSA, what is a phi function?

@cellularmitosis
cellularmitosis / .gitignore
Last active May 8, 2020
Flask "Hello, world!" using mod_wsgi-express
View .gitignore
__pycache__/
View README.md

QEMU PowerPC G4 OS X Tiger (10.4) setup

Here are some notes on how I set up an installation of OS X Tiger (10.4) on an emulated PowerPC G4 using QEMU, on a modern x86_64 Mac.

This setup was performed using QEMU 5.0.0 (obtained via brew install qemu).

Note: at some point during this process -cdrom /dev/cdrom seems to have stopped working, but -cdrom /dev/disk2 works.

View README.md

Building Janet from source

Debian and macOS (Homebrew)

Here's a script I use to install Janet from source on Linux machines:

#!/bin/bash

set -e -o pipefail
View README.md

Identify Raspberry Pi model from the command line

Thanks to the API at perturb.org, this is a one-liner:

$ curl -L perturb.org/rpi?rev=$(awk '/^Revision/ { print $3 }' /proc/cpuinfo)
Revision : a02082
Model    : 3 Model B
Memory   : 1 GB
Overvolt : No
View README.md
@cellularmitosis
cellularmitosis / README.md
Last active May 1, 2020
Installing Python 2 and 3 on various systems
View README.md

Installing Python 2 and 3 on various systems

Reminder to self about how to install and invoke Python 2 vs. 3 on the various platforms I use.

See also https://xkcd.com/1987/


@cellularmitosis
cellularmitosis / README.md
Last active May 1, 2020
One-time sshd on Windows/MSYS2
View README.md

One-time sshd on Windows/MSYS2

Need to ssh into your Windows machine? Open up an MSYS2 terminal and run:

$ ssh-keygen -A
$ /usr/bin/sshd -D

This runs sshd in the foreground. Press Control-C when finished.

@cellularmitosis
cellularmitosis / README.md
Last active Apr 30, 2020
Log of tigerbrew build errors on my eMac
View README.md
You can’t perform that action at this time.