Skip to content

Instantly share code, notes, and snippets.

View dmpe's full-sized avatar
💭
🎾

John dmpe

💭
🎾
View GitHub Profile
@dmpe
dmpe / kick.cfg
Created December 6, 2023 20:40
RHEL8/Rocky8 Kickstart file with CIS hardening generated by gitlab.com/kickstart-my-heart/rocky8
#version=RHEL8
# Kickstart for HeadlessCISPodman
# Version 8.8.1
# License agreement
eula --agreed
# Use non-interactive install
# (this has to be `cmdline` on RHEL 7)
@dmpe
dmpe / kickstart.cfg
Last active December 6, 2023 20:40
RHEL9/Rocky9 Kickstart file with CIS hardening generated by gitlab.com/kickstart-my-heart/rocky8
#version=RHEL9
# Kickstart for HeadlessCISPodman
# Version 9.2.1
# License agreement
eula --agreed
# Use non-interactive install
# (this has to be `cmdline` on RHEL 7)
@dmpe
dmpe / gist:ef0a927184d245fdc9a3700b2246866f
Created August 3, 2023 18:30
fluent-bit-issues-7658
parsers.conf: |
[PARSER]
Name docker
Format json
Time_Keep Off
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
-------------------
fluent-bit.conf: |
@dmpe
dmpe / startup_ubuntu.sh
Last active July 19, 2023 22:38
A post script which installs some basic tools for Ubuntu OS
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install -y wget curl
cd Downloads/
# Edge
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
@dmpe
dmpe / readme.md
Last active May 28, 2023 12:37
Active Directory Lab on VMware Workstation (2 Servers)

Setup

  • VMware Workstation
  • 2 Windows Servers VM (Core - w/o GUI and one with GUI) - Networking NAT
  • Install Forest on the Core Server
Install-ADDSForest `
  -DomainName "wintest.local" `
  -CreateDnsDelegation:$false `
  -DatabasePath "C:\Windows\NTDS" `
6 148 72 35 0 33.6 0.627 50 1
1 85 66 29 0 26.6 0.351 31 0
8 183 64 0 0 23.3 0.672 32 1
1 89 66 23 94 28.1 0.167 21 0
0 137 40 35 168 43.1 2.288 33 1
5 116 74 0 0 25.6 0.201 30 0
3 78 50 32 88 31.0 0.248 26 1
10 115 0 0 0 35.3 0.134 29 0
2 197 70 45 543 30.5 0.158 53 1
8 125 96 0 0 0.0 0.232 54 1
@dmpe
dmpe / gist:0e564039277402e292611be60304be24
Created September 28, 2022 11:29
Jaeger Operator Calico Network Policy
apiVersion: projectcalico.org/v3
kind: NetworkPolicy
metadata:
name: default.jaeger-operator-allow-ingress-trafic
namespace: observability
spec:
ingress:
- action: Allow
destination:
selector: app.kubernetes.io/component == "query"
@dmpe
dmpe / gist:61783eb65a9bae7ca77f2945aa06e773
Created February 21, 2021 21:01
xml test keycloak saml
<md:EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Name="urn:keycloak"><md:EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="http://localhost:8080/auth/realms/master"><md:IDPSSODescriptor WantAuthnRequestsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"><md:KeyDescriptor use="signing"><ds:KeyInfo><ds:KeyName>EQxZBqlBK1w6iOgQhC2mXTMfx--u8xJlJIpMA2AhaWo</ds:KeyName><ds:X509Data><ds:X509Certificate>MIICmzCCAYMCBgF3xjnmxDANBgkqhkiG9w0BAQsFADARMQ8wDQYDVQQDDAZtYXN0ZXIwHhcNMjEwMjIxMjAxMTU5WhcNMzEwMjIxMjAxMzM5WjARMQ8wDQYDVQQDDAZtYXN0ZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC8R0SUTnrveqtW8jcmsPM43CcngxQIB/7dS1tWd1MA6OvZRPofW+833qdCadowyfHhJqLcKRUCvS35j53jQZJiP
@dmpe
dmpe / example.ign
Created November 29, 2020 17:06
example.ign
{
"ignition": {
"version": "3.2.0"
},
"passwd": {
"users": [
{
"groups": [
"sudo",
"docker"
@dmpe
dmpe / import_certificate.sh
Created March 9, 2020 22:34
citrix - ssl cert cannot be trusted - tested on ubuntu
#!/bin/bash
cert_name=""
mv $cert_name /opt/Citrix/ICAClient/keystore/cacerts
/opt/Citrix/ICAClient/util/ctx_rehash