Skip to content

Instantly share code, notes, and snippets.

View Mikej81's full-sized avatar
💭
I may be slow to respond.

Michael Mikej81

💭
I may be slow to respond.
View GitHub Profile
@Mikej81
Mikej81 / xc_site_upgrade.sh
Last active January 24, 2024 18:04
Example XC Site Upgrade Automation
#!/bin/bash
# Check if the site-name and API Token arguments are provided
if [ -z "$1" ]; then
echo "Error: No site-name argument provided."
echo "Usage: $0 <site-name> <api-token>"
exit 1
fi
if [ -z "$2" ]; then
@Mikej81
Mikej81 / error.html
Created January 4, 2023 20:18
401 Error Page Example with configurable SAMLAuthRequest
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/dankogai/js-deflate/rawdeflate.js"></script>
</head>
<body>
<h1>SAMLAuthnRequest Test</h1>
<br />
To use, modify the following variables:
@Mikej81
Mikej81 / azure_prep.sh
Created May 24, 2022 20:01
Map Azure Vars
# get the current default subscription(s)
az account show --output table
# set the current default subscription
az account set --subscription <name or id>
#Map Subscription
export ARM_SUBSCRIPTION_ID=`az account show | jq -r '.id'`
export TF_VAR_azure_subscription_id=`az account show | jq -r '.id'`
@Mikej81
Mikej81 / traffic_gen.sh
Last active July 24, 2024 11:35
traffic generator using curl and torsocks with included attacks, TLS FP rotation
#!/usr/bin/env bash
# Detect OS / Platform
osName=$(uname -s)
case $osName in
Linux*) machine="Linux" ;;
Darwin*) machine="Mac" ;;
*) machine="UNKNOWN:$osName" ;;
esac
@Mikej81
Mikej81 / example-geo-ingress.yaml
Last active April 1, 2021 21:48
example-geo-ingress.yaml
apiVersion: v1
kind: Namespace
metadata:
name: nginx-ingress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-ingress
@Mikej81
Mikej81 / DisableInternetExplorer-ESC.ps1
Created July 15, 2020 16:58
Disable Internet Explorer ESC Powershell Script
function Disable-InternetExplorerESC {
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
$UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}"
Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0
Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0
Stop-Process -Name Explorer
}
Disable-InternetExplorerESC