Skip to content

Instantly share code, notes, and snippets.

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

Randolf J. jun-sheaf

😘
I may be slow to respond.
View GitHub Profile
@jun-sheaf
jun-sheaf / install_rustup.sh
Last active September 20, 2023 05:37
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.
@jun-sheaf
jun-sheaf / latex2svg
Last active December 3, 2020 21:01
A small shell script to convert LaTeX code to SVG
#!/usr/bin/env bash
#######################################################
### REQUIREMENTS ######################################
#######################################################
## XeLaTeX: Available through most TeX distributions ##
## dvisvgm: Available through most TeX distributions ##
## svgo (optional, but highly recommended) ##
#######################################################
### Usage #############################################