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 August 19, 2024 19:24
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 / 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" `
@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
@dmpe
dmpe / backup.ps1
Created December 28, 2019 16:16
Azure Key Vault - Backup secrets using powershell (core) - Uses newer az Module
[string]$VaultName = 'keyvault'
Get-AzKeyVaultSecret -VaultName $VaultName |
ForEach-Object {
Backup-AzKeyVaultSecret `
-VaultName $VaultName `
-Name $_."Name" `
-OutputFile ('/home/jm/Documents/azure-keyvault-backups/{0}.blob' -f $_."Name")
}
@dmpe
dmpe / branch_cleanup.sh
Created May 24, 2019 00:47
delete remote and locale devel-cur-* branch
# https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely
release_in_question="9.0.3.290.02"
future_release=""
git checkout master
# get latest from remote
git pull origin pull