Skip to content

Instantly share code, notes, and snippets.

View peromage's full-sized avatar
🍄
:P

Fang Deng peromage

🍄
:P
View GitHub Profile
@cjonesy
cjonesy / macbook_pro_ubuntu_install.md
Last active July 22, 2025 09:43
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image
@CMCDragonkai
CMCDragonkai / nix_inputs.md
Last active June 21, 2025 08:38
Understanding Nix Inputs #nix

Understanding Nix Inputs

Every Nix derivation produces a Nix store output that has 3 things:

  • Executables
  • Libraries
  • Data

Executables are always exported using the PATH environment variable. This is pretty much automatic.

@udf
udf / write_up.md
Last active May 11, 2025 22:07
A Trick To Use mkMerge at The Top Level of a NixOS module

The Setup

I wanted to write a module that generates multiple systemd services and timers to scrub some zfs pools at certain intervals. The default scrub config does not support individual scrub intervals for each pool.

I want the config to look like this:

{
  services.zfs-auto-scrub = {
 tank = "Sat *-*-* 00:00:00";