Skip to content

Instantly share code, notes, and snippets.

View lemonprogis's full-sized avatar
🎸

Ed lemonprogis

🎸
  • Defense Unicorns
  • Conway, Arkansas
View GitHub Profile
@lemonprogis
lemonprogis / README.md
Last active November 18, 2026 01:53
Java4shell MutatingAdmissionPolicy

Java4Shell mitigation with Kubernetes admission policy

This opt-in policy adds JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics to selected OpenJDK containers on Pod creation as a temporary mitigation for CVE-2026-114938. Upgrade to a patched JVM when your application image is available. Java4Shell advisory

Use the API version your cluster serves

Run kubectl api-resources --api-group=admissionregistration.k8s.io and check for both MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.

  • For Kubernetes 1.36 and later, change both apiVersion fields to admissionregistration.k8s.io/v1 when discovery shows both resources at that version. Stable API docs
  • For Kubernetes 1.35, the YAML uses v1beta1. The API server must enable the MutatingAdmissionPolicy feature gate and the beta API. [Kubernetes 1.35 docs](https://v1-35.docs.kubernetes.io/docs/reference/access
@lemonprogis
lemonprogis / interview-kube-context.yaml
Created August 21, 2026 15:34
interview-kube-context
---
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUzT0Rjek1qWXpPVGN3SGhjTk1qWXdPREl4TVRRek16RTNXaGNOTXpZd09ERTRNVFF6TXpFMwpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUzT0Rjek1qWXpPVGN3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFTNVc1b09qMklTOFJJdnNCZld0U1Y2VUpMam9sclNLdmkyWFMyTDJZNk0KOGhDRTI3cjlWWVNQcUFMcFlQakJoVGw1YjhPZmJRcFNrR0hRRnJpV3pFcnVvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVWMrZ2R2c2gxTS85ZXk0WmdhTkFmCm14d09Qdmd3Q2dZSUtvWkl6ajBFQXdJRFNRQXdSZ0loQUltb0dnZzhseVh4Yy9QekRkWjMwS3Jqb055dDNPcE0KNVp5MzFCUGlaNWVPQWlFQWhYUmNPZEZrbHlCbm9yV3BrUGNpTzhaMVFyd0xxSmpmNW45UFZ3MVR0cmc9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://98.91.237.91:6443
name: k3d-interview
contexts:
- context:
cluster: k3d-interview
---
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUzT0RJNU9UVXpNall3SGhjTk1qWXdOekF5TVRJeU9EUTJXaGNOTXpZd05qSTVNVEl5T0RRMgpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUzT0RJNU9UVXpNall3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFTaHBoOW9MREpNWlpJcVFZYmVZZG51WmxGS01EaGxHQjNQZ0pCdzJVYXgKenZOMCs0dFI0byt2Z21SazdkR1NiQzVZWElFMXlxNjFHNzU2VlRSZCtKY2FvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVURVS0JKMGJZS09rb0k4Y2d2VTNzCi93b09YUFF3Q2dZSUtvWkl6ajBFQXdJRFNRQXdSZ0loQUwxSThEUTRsRk1YbUxKempHb1E2RHcwT3RwNGVNengKN2FzcjZHTXNNY1VrQWlFQTVEWlVKU3pBU0xhdmhxcVFTdTR5Q0ViNDlpaEJBUXlZNExVRER0UmRjNFU9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://52.201.216.153:6443
name: k3d-interview
contexts:
- context:
cluster: k3d-interview
@lemonprogis
lemonprogis / signing-git-commits.md
Created February 21, 2025 16:28 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@lemonprogis
lemonprogis / ArcGisServer.py
Last active August 29, 2015 14:25
Use these files to interact with arcgis server rest api. Lots of functionality exposed via REST. Good for automating tasks in python.
# -*- coding: iso-8859-1 -*-
"""
ArcGIS Server Module
"""
__author__='Ed Briggler, Jason Tipton'
__VERSION__='1.0'
# http://resources.arcgis.com/en/help/rest/apiref/
# http://resources.arcgis.com/en/help/server-admin-api/