This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -uo pipefail | |
PATTERN="${1}" | |
echo "${PATTERN}" | |
echo kubectl delete pvc $(kubectl get pvc | grep "${PATTERN}" | awk '{ print $1 }') | |
echo kubectl delete pv $(kubectl get pv | grep "${PATTERN}" | awk '{ print $1 }') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# @file | |
# Check the expiration dates for all Azure AD App Registration Secrets. | |
# | |
# All applications that have secrets that have expired or that will expire in | |
# the next 60 days are exported to CSV. | |
# | |
# Adapted from: | |
# https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/scripts/powershell-export-apps-with-expriring-secrets | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# @file | |
# A script to benchmark how Azure AD App Proxy performs across multiple | |
# requests. | |
# | |
# If you are using pre-authentication (as you usually will be), before using | |
# this script, you will need to sign in using your browser and then use | |
# developer tools to grab your session cookie so you can paste it below. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define the Pantheon upstream ID | |
UPSTREAM_ID="21e1fada-199c-492b-97bd-0b36b53a9da0" | |
# Authenticate with Terminus (replace with your authentication method) | |
# terminus auth:login | |
# Initialize the CSV output with headers | |
echo "Site Name,Install Profile Version" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from elasticsearch import Elasticsearch | |
# Load JSON data | |
with open("documents.json", "r") as file: | |
documents_raw = json.load(file) | |
# Flatten the documents structure | |
documents = [] | |
for course in documents_raw: |
OlderNewer