This file contains 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: |
This file contains 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 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 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 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 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 | |
## | |
# @file | |
# Extracts all of the issue tags in commit messages of a branch_ref and lists them. | |
# | |
# Usage: | |
# list-issues.sh [branch_ref ref] [base branch_ref ref] | |
# | |
# - If [branch_ref ref] is not specified, it defaults to "HEAD" (whatever is |
This file contains 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
<html> | |
<body> | |
<iframe src="https://fast.wistia.net/embed/iframe/7epq4bhukx?videoFoam=true" title="Star Wars Terms of Service - July 2022 v2 Video" allow="autoplay; fullscreen" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" msallowfullscreen="" width="633" height="356" data-dashlane-frameid="8008" style="width: 633px; height: 356px;"></iframe> | |
</body> | |
</html> |
This file contains 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 -euo pipefail | |
if [[ "$#" -eq 0 ]]; then | |
{ | |
echo "Usage: ${0} <multi-dev 1> [multi-dev 2]... etc." | |
echo | |
echo "For example:" | |
echo " ${0} mr-819 mr-815 mr-814" |
NewerOlder