Skip to content

Instantly share code, notes, and snippets.

View chen1plus's full-sized avatar

Aaron Chen chen1plus

  • National Tsing Hua University
  • Taiwan
  • LinkedIn in/chen1plus
View GitHub Profile
@chen1plus
chen1plus / better.typ
Last active April 1, 2026 17:21
Personal @typst snippets
#import "@preview/ilm:2.0.0": *
#show: ilm.with(
cover-page: none,
table-of-contents: none,
paper-size: "a5",
// footer: none,
footer: "page-number-center",
)
@chen1plus
chen1plus / install-spack.sh
Last active March 13, 2026 16:11
Script to install @spack
#!/usr/bin/env bash
# shellcheck disable=SC1090
packages=(
autoconf automake bzip2 cmake diffutils
findutils gettext git gmake libtool m4
ninja openssl perl pkgconf python
)
git clone -b releases/v1.1 --depth 2 https://github.com/spack/spack.git ~/spack
@chen1plus
chen1plus / genmod.sh
Last active March 25, 2026 11:50
Script to generate a modulefile. Original author: @linskybing
#!/usr/bin/env bash
# shellcheck disable=SC2016
# shellcheck disable=SC2154
# @arg app!
# @arg version!
# @arg prefix!
# @env GENMOD_DIR!
eval "$(argc --argc-eval "$0" "$@")"