Skip to content

Instantly share code, notes, and snippets.

View ctron's full-sized avatar
Work it, make it, do it, …

Jens Reimann ctron

Work it, make it, do it, …
View GitHub Profile
@ctron
ctron / csaf.lnk
Created December 15, 2023 08:14
csaf
https://web.tresorit.com/r#Jb4D-wPUhi9dV_GBB2dqsg
@ctron
ctron / job.yaml
Created August 6, 2021 16:28
Outflux Kubernetes Job
kind: Job
apiVersion: batch/v1
metadata:
name: outflux
spec:
parallelism: 1
completions: 1
template:
metadata:
labels:
@ctron
ctron / streamer.rs
Created May 5, 2021 09:17
A streaming JSON serializer
// Copyright 2021 Red Hat Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@ctron
ctron / tekton-cleanup.yaml
Last active August 30, 2024 15:29
Cleaning up Tekton pipeline runs
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cleaner
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cleaner
@ctron
ctron / minukube-cores.md
Last active July 30, 2020 10:02
Create core dumps with Minikube

Pre-reqs

  • Have minikube running

Prepare Minikube

Log in to the Minikube VM and become root:

minikube ssh

sudo su - root

Keybase proof

I hereby claim:

  • I am ctron on github.
  • I am ctron (https://keybase.io/ctron) on keybase.
  • I have a public key ASA_VJJxqDRP65x9OEBCDxldFJimEuRZd1rKFII6BpaR-go

To claim this, I am signing this object:

@ctron
ctron / user-data.yml
Last active January 18, 2019 09:53
OpenShift ready docker installation on Hetzner cloud infrastructure
#cloud-config
growpart:
mode: off
runcmd:
- [ bash, "-c", "echo -e 'BOOTPROTO=static\nONBOOT=yes\nDEVICE=eth0:1\nTYPE=Ethernet\nIPADDR=94.130.191.121\nNETMASK=255.255.255.255' > /etc/sysconfig/network-scripts/ifcfg-eth0\\:1" ]
- [ ifup, "eth0:1" ]
- [ parted, "/dev/sda", mkpart, primary, ext2, "50GB", "100%" ]
- [ parted, "/dev/sda", set, "2", lvm, on ]
@ctron
ctron / user-data.yml
Last active May 4, 2022 04:30
Reserving additional space on Hetzner cloud instances using CentOS 7
#cloud-config
# we need to disable the initial call to "growpart" as otherwise the first partition would consume
# all space on the dist
#
# The final disk layout is:
# #0 0 - 10GB - ext4 on /
# #1 10GB - 100% - lvm
#
# The reason for this approach is that when using CentOS on Hetzner you cannot use
@ctron
ctron / index.html
Created January 13, 2015 08:30
Pure Bug Sample
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pure Test</title>
<link rel="stylesheet" href="pure/0.5.0/pure-min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">