Skip to content

Instantly share code, notes, and snippets.

View jrandolf's full-sized avatar
😘
I may be slow to respond.

Randolf J. jrandolf

😘
I may be slow to respond.
View GitHub Profile

Build the following: {INSERT GOAL HERE}

You are to create a monorepo with the following structure:

Repository layout

javascript/(package-name) (if using JavaScript/TypeScript)
rust/(crate-name)         (if using Rust)
go/(module-name) (if using Go)
@jrandolf
jrandolf / install_rustup.sh
Last active January 2, 2026 23:16
Installs rustup as a system-wide toolchain manager
#!/bin/zsh
# Rustup doesn't have an easy "system-wide" approach to installation since it
# requires $CARGO_HOME for locating the binary folder. Here, we define
# `system-wide` as requiring `sudo-only` permission, i.e. `rustup install
# toolchain ...` breaks without `sudo`.
#
# The trick is thus to somehow "envelope" Rustup in another script so that it
# uses a "system-wide" cargo home instead of the default one whenever it's
# called.