Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@duijf
duijf / README.md
Created September 27, 2023 10:44
Demo: Terraform external data soruce

Demo: Terraform external data source

Prerequisite: Nix or install Terraform by hand.

$ nix run nixpkgs#terraform init
[...]

$ nix run nixpkgs#terraform plan
[...]
@duijf
duijf / README.md
Last active September 24, 2023 16:43
Minimal repro of `poetry2nix` eval failure

Minimal reproduction of poetry2nix eval failure

$ git clone https://gist.github.com/d0455a67d4f6b37058de8406086ed388.git repro
$ cd repro

# Change `system = "aarch64-darwin"` on line 7 if you are on another platform
$ vim flake.nix

$ nix build
@duijf
duijf / keybase.md
Created January 7, 2022 11:31
keybase.md

Keybase proof

I hereby claim:

  • I am duijf on github.
  • I am duijf (https://keybase.io/duijf) on keybase.
  • I have a public key ASCnrhRZmMxQVDECP8jlQTo2cwqanNVNw073NnhwjwaoBwo

To claim this, I am signing this object:

@duijf
duijf / REVIEW.md
Created August 19, 2019 21:28
Mergeful review

Review

Was asked for a review of the mergeful. These are my findings.

Approach and scope

I don't think I'll look into the correctness of the code too much; I'll probably make more general observations, but who knows. What follows is an

@duijf
duijf / bootstrap-nix.py
Last active September 24, 2019 16:49
Nix installation script without channels and other magic. May eat your hard drive.
#!/usr/bin/env python3.7
"""
Bootstrap or update a single user Nix installation.
Caveat emptor: may eat your hard-drive. Read the script first and check that you
like what it does.
(C) Laurens Duijvesteijn 2019. Licensed under the MPL 2.0 available from
https://www.mozilla.org/en-US/MPL/2.0/
@duijf
duijf / ssh-agent.zsh
Created October 7, 2016 12:19
ZSH ssh agent
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo Succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add
}
if [ -f "${SSH_ENV}" ]; then
@duijf
duijf / docker-glossary.md
Last active January 3, 2016 18:49
Dutch description of my working knowledge of docker

Docker concepts

Linux file systems

Een Linux systeem heeft twee filesystems nodig om te functioneren:

  • Een boot file system (bootfs)
  • Een root file system (rootfs)

Het bootfs bevat de bootloader en kernel. Tijdens system boot wordt de kernel in het geheugen geladen en het bootfs wordt gedismount.