Skip to content

Instantly share code, notes, and snippets.

View jkroepke's full-sized avatar
😀
Happy.

Jan-Otto Kröpke jkroepke

😀
Happy.
View GitHub Profile
#!/bin/bash
set -xeuo pipefail
export PATH="/tmp/python/bin/:/tmp/bin/:$PATH"
export HOME=/tmp
cd /tmp
mkdir /tmp/bin
@jkroepke
jkroepke / setup.ps1
Last active June 7, 2023 10:07
setup.ps1
# https://karask.com/retry-powershell-invoke-webrequest
function Invoke-WebRequestRetry {
Param(
[Parameter(Mandatory=$True)][hashtable]$Params,
[int]$Retries = 3,
[int]$SecondsDelay = 2
)
if ($Params.ContainsKey('Method')) {
$method = $Params['Method']

(Junior|Senior) Kubernetes Engineer (m/w/d)

Tags: Kubernetes, Operations, DevOps, SRE, Azure, Cloud, Remote

Deine Aufgaben:

  • Im Team verfolgt ihr das gemeinsame Ziel, die bestmöglichen Lösungen auf Basis aktueller Cloud-Native-Technologien für den Bedarf der Kunden zu entwickeln. Dir ist wichtig, dass die Kubernetes Cluster unserer Kunden funktionieren, sicher und aktuell sind. Dabei denkst du über fachliche Grenzen und Projektphasen hinweg und übernimmst gemeinsam die Verantwortung.
  • Als Kubernetes Engineer bist Du gemeinsam mit unseren Squads für den reibungslosen Betrieb mitverantwortlich. Deine Expertise bringst Du zusätzlich zur ständigen Optimierung der Systeme ein. Du führst qualifizierte Analysen durch, behebst Incidents und begleitest Changes.
  • Du erstellst und verbesserst die Deployment- und Betriebsprozesse sowie die Automatisierungslösungen und designest diese bei Bedarf
  • Durch Deine Kreativität und Ideen entwickelst Du unsere Service Angebote kontinuierlich weiter. Dabei legst Du gro
@jkroepke
jkroepke / .tmux.conf
Last active March 30, 2023 09:39
my personal tmux.conf
# change the prefix from 'C-b' to 'C-a'
# (remap capslock to CTRL for easy access)
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# SSH Environment
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINXX"
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
set -g set-titles on
@jkroepke
jkroepke / kubeconfig-oc-wrapper.sh
Last active December 3, 2020 23:20
kubeconfig-oc-wrapper.sh Using kubernetes tools with oc commands
#!/bin/bash
set -eo pipefail
export SCOPE="kubeconfig-oc-wrapper-${CLUSTER_NAME:-default}"
export KUBECONFIG="${HOME}/.kube/${SCOPE}.config"
function readKeychain() {
# https://www.linuxjournal.com/content/return-values-bash-functions
local CREDENTIAL=""
const WebpackFilePreprocessorPlugin = require('@jkroepke/webpack-file-preprocessor-plugin');
const minifyHtml = require('html-minifier').minify;
module.exports = config => {
config.plugins.push(
new WebpackFilePreprocessorPlugin({
pattern: /\.(svg)$/,
process: source => minifyHtml(source.toString(), {
collapseInlineTagWhitespace: true,
const WebpackFilePreprocessorPlugin = require('@jkroepke/webpack-file-preprocessor-plugin');
module.exports = config => {
config.plugins.push(
new WebpackFilePreprocessorPlugin({
pattern: /\.(json)$/,
process: source => JSON.stringify(JSON.parse(source)),
})
);
@jkroepke
jkroepke / jwks-to-pem.sh
Last active September 29, 2022 11:12
JWKS to PEM in bash
#!/usr/bin/env sh
set -euo pipefail
JWKS_TEMP=$(mktemp)
JWKS_URL=$1
curl -s "${JWKS_URL}" | \
python -c 'import sys, json; data=json.load(sys.stdin); print(data["keys"][0]["n"] + data["keys"][0]["e"])' > "${JWKS_TEMP}"
{
echo 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA' | openssl base64 -d;
@jkroepke
jkroepke / job-dsl.groovy
Created June 19, 2018 07:50
Extended Choice Parameter - Emulate Peristent Parameter Plugin for Pipelines 2.0
def choiceGroovyScript = '''
try {
return jenkins.getItemByFullName(jobName).getLastBuild().getProperties()["environment"][parameterName]
} catch (all) {
return defaultValue
}
'''.trim()
job('JOB_NAME') {
configure { project->