Skip to content

Instantly share code, notes, and snippets.

{
apps = {
my-linter = {
type = "app";
program = "${myLinter}/bin/my-linter";
};
my-checker = {
type = "app";
program = "${myChecker}/bin/my-checker";
@vfarcic
vfarcic / 181-kpt.sh
Last active September 15, 2022 03:13
# Source: https://gist.github.com/497a72d63c159e93f7351480f7506c05
######################################################################
# kpt YAML Transformation - No Helm Templates, No Kustomize Overlays #
# https://youtu.be/Wavigyq7NdQ #
######################################################################
# Additional Info:
# - kpt: https://kpt.dev
# - How To Write And Test Kubernetes Manifests With Datree: https://youtu.be/3jZTqCETW2w
@hongchaodeng
hongchaodeng / command.cue
Last active November 8, 2022 13:17
dagger read/write
package main
import (
"dagger.io/dagger"
"universe.dagger.io/alpine"
"universe.dagger.io/bash"
"universe.dagger.io/docker"
)
dagger.#Plan & {
@abbaspour
abbaspour / client.conf
Last active December 17, 2023 22:53
https with stunnel and socat
client = yes
debug = 5
foreground = yes
pid = /var/tmp/stunnel-client.pid
cert= st.pem
[Application]
accept = 1081
connect = 3000
@tobybellwood
tobybellwood / helmfile.yml
Created September 20, 2021 06:15
preliminary helmfile for lagoon
# Chart repositories used from within this state file
#
# Use `helm-s3` and `helm-git` and whatever Helm Downloader plugins
# to use repositories other than the official repository or one backend by chartmuseum.
repositories:
# To use official "stable" charts a.k.a https://github.com/helm/charts/tree/master/stable
- name: stable
url: https://charts.helm.sh/stable
- name: harbor
url: https://helm.goharbor.io

PKI for busy people

Public-key infrastructure (PKI) is an umbrella term for everything that has to do with keys and certificates.

This is a quick overview of the important stuff.

Public-key cryptography

Public-key cryptography involves a key pair: a public key and a private key. Each entity has their own. The public key can be shared around, the private key is secret.

@protosam
protosam / Dockerfile
Last active January 4, 2024 19:59
Nvidia Jetson sdkmanager in Docker Notes
FROM ubuntu:18.04
# Install SDK deps
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
libgconf-2-4 \
libcanberra-gtk-module \
locales \
@dhruvilp
dhruvilp / README.md
Last active June 1, 2024 23:29
Copy commits from one git repo to another
@benoitpetit
benoitpetit / docker-compose.yml
Last active July 20, 2024 16:20
complete Gitlab installation and a runner with docker
version: '4.5'
services:
# GITLAB
gitlab-web:
image: 'gitlab/gitlab-ce:latest'
restart: always
container_name: gitlab-web
hostname: '192.168.0.14'
environment:
@noteed
noteed / nix-cache.md
Last active December 7, 2022 07:20
Nix cache

Notes about caching Nix builds

You can use Cachix (I haven't tried it yet but people are happy with it), or spend time like I do crawling through similar notes.

I have to put back my notes in order, because of this tweets: https://twitter.com/noteed/status/1285875859468029958

It turns out I did use a cache on Digital Ocean Spaces in the past, but I didn't have much notes.

Links