curl https://github.com/cert-manager/cert-manager/releases/download/v1.14.5/cert-manager.yaml |
cue import - -p kube -l '"_cert-manager"' -l 'strings.ToCamel(kind)' -l metadata.name -f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, modulesPath, ... }: | |
{ | |
imports = [ | |
(modulesPath + "/profiles/minimal.nix") | |
./nspawn-image.nix | |
]; | |
boot.isContainer = true; | |
networking.hostName = "nixos"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has nix; then | |
use flake | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extensions: | |
zpages: | |
endpoint: 0.0.0.0:8080 | |
receivers: | |
hostmetrics: | |
collection_interval: 3s | |
scrapers: | |
cpu: | |
load: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host dln-dev | |
RemoteForward ${XDG_RUNTIME_DIR}/opener.sock ${XDG_RUNTIME_DIR}/opener.dln-dev.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uuid | |
import ( | |
"bytes" | |
"encoding/base64" | |
"strings" | |
"github.com/gofrs/uuid/v5" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Proquints: Identifiers that are Readable, Spellable, and Pronounceable | |
// https://arxiv.org/html/0901.4016 | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"regexp" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% buf generate | |
google/protobuf/timestamp.proto:136:9:symbol "google.protobuf.Timestamp" already defined at timestamp.proto:136:9 | |
google/protobuf/timestamp.proto:140:9:symbol "google.protobuf.Timestamp.seconds" already defined at timestamp.proto:140:9 | |
google/protobuf/timestamp.proto:146:9:symbol "google.protobuf.Timestamp.nanos" already defined at timestamp.proto:146:9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"os" | |
"golang.org/x/exp/slog" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Author: Daniel Lundin <[email protected]> | |
# | |
# Convenience script to hide sensitive variables on the command line. | |
# Uses keyctl to store secrets in the keyring. | |
# | |
# Example usage: mycommand --user=foo --password=$(pw mypass) | |
set -eo pipefail |
NewerOlder