Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Jenkins Configuraitons Directory
cd $JENKINS_HOME
# Add general configurations, job configurations, and user content
git add -- *.xml jobs/*/*.xml userContent/* ansible/*
# only add user configurations if they exist
if [ -d users ]; then
user_configs=`ls users/*/config.xml`
@sohooo
sohooo / rke2-stig-controls
Created December 5, 2025 09:00 — forked from zackbradys/rke2-stig-controls
Configuration for the Published DISA STIG for Rancher Kubernetes (RKE2)
--- RKE2 SERVER NODES (CONTROL PLANE) ---
### Setup RKE2 Server
mkdir -p /opt/rke2-artifacts/ /etc/rancher/rke2/ /var/lib/rancher/rke2/server/manifests/
useradd -r -c "etcd user" -s /sbin/nologin -M etcd -U
### Configure RKE2 Config
cat << EOF >> /etc/rancher/rke2/config.yaml
profile: cis
selinux: true
secrets-encryption: true
@sohooo
sohooo / rke2-hardened-install-tips
Created December 9, 2025 07:20 — forked from zackbradys/rke2-hardened-install-tips
Rancher Kubernetes (RKE2) - Installation of Fully Hardened Configuration Options
### FIRST RKE2 SERVER NODE (CONTROL PLANE NODES)
### Set Variables
export DOMAIN=
export TOKEN=
export vRKE2=
export Registry=
export RegistryUsername=
export RegistryPassword=
### Apply System Settings
@sohooo
sohooo / claude-code-metrics.json
Created December 14, 2025 14:25 — forked from yangchuansheng/claude-code-metrics.json
claude-code-metrics.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,