Skip to content

Instantly share code, notes, and snippets.

View henry40408's full-sized avatar
🌴
Relaxed

Heng-Yi Wu henry40408

🌴
Relaxed
  • Taipei, Taiwan
  • 12:14 (UTC +08:00)
View GitHub Profile
@henry40408
henry40408 / install.sh
Last active August 2, 2023 16:09
Install chezmoi
#!/bin/sh
# chezmoi install script
# contains code from and inspired by
# https://github.com/client9/shlib
# https://github.com/goreleaser/godownloader
set -e
BINDIR="${BINDIR:-./bin}"
@henry40408
henry40408 / install.sh
Last active April 15, 2024 14:29
install nix (official)
#!/bin/sh
# This script installs the Nix package manager on your system by
# downloading a binary distribution and running its installer script
# (which in turn creates and populates /nix).
{ # Prevent execution if this script was only partially downloaded
oops() {
echo "$0:" "$@" >&2
exit 1
@henry40408
henry40408 / install.sh
Last active October 17, 2024 15:30
Determinate Nix Installer
#!/bin/sh
# shellcheck shell=dash
# If you need an offline install, or you'd prefer to run the binary directly, head to
# https://github.com/DeterminateSystems/nix-installer/releases then pick the version and platform
# most appropriate for your deployment target.
#
# This is just a little script that selects and downloads the right `nix-installer`. It does
# platform detection, downloads the installer, and runs it; that's it.
#