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 | |
| # shfmt -i 2 -ci -w | |
| set -e | |
| # AppCAT Ruleset Cleanup Script | |
| # Optimized for Spring Boot applications targeting Azure AKS on Linux | |
| # Removes unnecessary rulesets to speed up assessments | |
| ################################################################################ | |
| RULESETS_DIR="${HOME}/.appcat/rulesets" |
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
| # Run PowerShell as Administrator | |
| # 1. Install Chocolatey (if not already installed) | |
| if (-Not (Get-Command choco -ErrorAction SilentlyContinue)) { | |
| Set-ExecutionPolicy Bypass -Scope Process -Force | |
| [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 | |
| Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| } | |
| # 2. Install Applications |
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
| apiVersion: apiextensions.k8s.io/v1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| annotations: | |
| controller-gen.kubebuilder.io/version: v0.11.1 | |
| meta.helm.sh/release-name: aks-managed-azure-monitor-metrics | |
| meta.helm.sh/release-namespace: kube-system | |
| creationTimestamp: "2025-03-18T18:40:43Z" | |
| generation: 1 | |
| labels: |
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
| # Source: nvidia-device-plugin/templates/daemonset-device-plugin.yml | |
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: nvdp-nvidia-device-plugin | |
| namespace: nvidia-device-plugin | |
| labels: | |
| helm.sh/chart: nvidia-device-plugin-0.15.0 | |
| app.kubernetes.io/name: nvidia-device-plugin | |
| app.kubernetes.io/instance: nvdp |
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 | |
| set -x | |
| # Set your ACR name and resource variables | |
| ACR_NAME="" | |
| SOURCE_RG_C1="<source-resource-group>" | |
| MyRegC1="<my-registry>" | |
| MyPipelineC1="<my-pipeline>" | |
| MyPipelineC1Run="<my-pipeline-run>" | |
| MyBlob="<my-storage-blob>" |
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/env bash | |
| # shfmt -i 2 -ci -w | |
| set -eox | |
| wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d461a695-6481-426f-a22f-b5644cd1fa8b/l_HPCKit_p_2024.2.1.79_offline.sh | |
| sh ./l_HPCKit_p_2024.2.1.79_offline.sh -a --silent --cli --eula accept | |
| # pre-requisites | |
| apt update && apt install -y \ |
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
| # to run podman in a pod | |
| # create a priviledge pod | |
| cat <<EOF | kubectl apply -f - | |
| kind: Pod | |
| apiVersion: v1 | |
| metadata: | |
| name: adcirc-debug | |
| spec: | |
| containers: |
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 -x | |
| export TORCH_CPP_LOG_LEVEL=INFO | |
| export TORCH_DISTRIBUTED_DEBUG=DETAIL | |
| export LOGLEVEL=DEBUG | |
| export NCCL_DEBUG=warn | |
| export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/usr/local/nccl-rdma-sharp-plugins/lib:$LD_LIBRARY_PATH | |
| export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libnccl.so | |
| export NCCL_IB_PCI_RELAXED_ORDERING=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
| AzureDiagnostics | |
| | where ResourceType == "AZUREFIREWALLS" | |
| | extend | |
| proto = extract(@"^([A-Z]+) ",1,msg_s) | |
| ,src_host = extract(@"request from ([\d\.]*)",1,msg_s) | |
| ,src_port = extract(@"request from [\d\.]*:(\d+)",1,msg_s) | |
| ,dest_host = extract(@" to ([-\w\.]+)(:|\. |\.$)",1,msg_s) | |
| ,dest_port = extract(@" to [-\w\.]+:(\d+)",1,msg_s) | |
| ,action = iif( | |
| msg_s has "was denied" |
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
| # when creating a tarball on macOS you might want to exclude the | |
| # AppleDouble files and xattr in your tarball | |
| # | |
| # here is an example: | |
| tar --disable-copyfile --no-xattrs -cvzf capsh-0.1.1.tar.gz . |
NewerOlder