Skip to content

Instantly share code, notes, and snippets.

View daprice's full-sized avatar

Dale Price daprice

View GitHub Profile
@daprice
daprice / Setting up a Mastodon development environment using container machine.md
Last active October 13, 2026 00:33
Setting up a Mastodon development environment on macOS using Apple’s `container machine`

Setting up a Mastodon development environment using Apple’s container machine on macOS

Container Machine is Apple’s open-source, lightweight virtualization solution for running a Linux development environment on a Mac, akin to WSL (Windows Subsystem for Linux) on Windows. The talk Discover container machines from WWDC 2026 provides an overview of how it works. In my limited experience, it starts and runs much faster than comparable options like Vagrant or Docker Desktop, doesn’t make you deal with janky, non-native UI or nag you to upgrade to a paid plan, and has a smaller memory, CPU, and storage footprint.

First I installed container by running the following in a Terminal window. I used Homebrew but you could also install it manually following the instructions in Apple's README.

brew install container
@daprice
daprice / README.md
Last active March 9, 2022 01:08
Convert an STL intended for 3D printing (Z up, mm units) to a USDZ file compatible with Apple's AR Quick Look and ARKit

This script must be placed in the root folder of the USD tools library provided by Apple on their AR Quick Look Gallery page. Requires assimp to be installed.

Command format: ./stl_to_usdz.sh input_file.stl output_file.usdz

For now, this just inserts the necessary transformations at a hardcoded line number in the USD markup, so compatibility with future versions of usdzconvert is not guaranteed.

@daprice
daprice / printer.cfg
Last active December 2, 2019 07:09
RostockMax v2 Klipper configuration
# This file constains the pin mappings for the SeeMeCNC Rostock Max
# (version 2) delta printer from 2015. To use this config, the
# firmware should be compiled for the AVR atmega2560.
# See the example.cfg file for a description of available parameters.
[stepper_a]
step_pin: PC0
dir_pin: !PL1
enable_pin: !PA7
api.areametrics.com
in.cuebiq.com
et.intake.factual.com
api.factual.com
api.beaconsinspace.com
api.huq.io
m2m-api.inmarket.com
mobileapi.mobiquitynetworks.com
sdk.revealmobile.com
api.safegraph.com
@daprice
daprice / layout.kbd.json
Last active March 17, 2018 04:05
iOS: The Missing Macropad
[
[
{
"p": "CHICKLET",
"a": 7,
"f": 7
},
"<i class='fa fa-keyboard-o'></i>",
{
"f": 4