Skip to content

Instantly share code, notes, and snippets.

View lion7's full-sized avatar

Gerard de Leeuw lion7

View GitHub Profile
@lion7
lion7 / cni.yaml
Last active January 17, 2025 14:32
Install loopback CNI
apiVersion: v1
kind: ConfigMap
metadata:
name: cni-conf
namespace: kube-system
data:
loopback.conflist: |
{
"cniVersion": "1.0.0",
"name": "cni",
@lion7
lion7 / flux-aio.yaml
Created November 1, 2024 19:45
Rendered YAML of https://github.com/stefanprodan/flux-aio/ for self-managed Talos Linux clusters
# Generated with the following command:
# timoni build flux oci://ghcr.io/stefanprodan/modules/flux-aio -n kube-system --values - <<EOF
# values: {
# hostNetwork: true
# securityProfile: "restricted"
# controllers: notification: enabled: false
# env: {
# "KUBERNETES_SERVICE_HOST": "::"
# "KUBERNETES_SERVICE_PORT": "7445"
# }
@lion7
lion7 / timoni-bootstrap-job.yaml
Last active December 25, 2024 19:06
Kubernetes Job that bootstraps a Talos Linux cluster with Timoni
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: bootstrap
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
package com.github.lion7.xjc.nullability
import com.sun.tools.xjc.Options
import com.sun.tools.xjc.Plugin
import com.sun.tools.xjc.outline.FieldOutline
import com.sun.tools.xjc.outline.Outline
import org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo
import org.glassfish.jaxb.core.v2.model.core.ElementPropertyInfo
import org.xml.sax.ErrorHandler
@lion7
lion7 / HibernateObjectMapperSupplier.kt
Created May 11, 2021 11:53
Using Spring-configured ObjectMapper in Hibernate
package com.github.lion7.example
import com.fasterxml.jackson.databind.ObjectMapper
import com.vladmihalcea.hibernate.type.util.ObjectMapperSupplier
import org.springframework.beans.factory.config.BeanFactoryPostProcessor
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory
import org.springframework.stereotype.Component
class HibernateObjectMapperSupplier : ObjectMapperSupplier {
override fun get(): ObjectMapper =