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 -euo pipefail | |
| ##################################### | |
| # Domain Layer: Entry & Roll-up Types | |
| ##################################### | |
| ENTRY_TYPE_INSIGHT="insight" | |
| ENTRY_TYPE_FACT="fact" |
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 | |
| # Function to display help menu | |
| display_help() { | |
| echo "Usage: $0 [options]" | |
| echo "Options:" | |
| echo " -s, --subscription <subscription_name> Specify the Azure subscription name" | |
| echo " -h, --help Display this help menu" | |
| } |
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 | |
| # Use this any time a cluster has been added, rebuilt or removed or if you gain access to | |
| # one you didn't previously have. | |
| # Function to check Azure CLI login status | |
| check_az_login() { | |
| if az account show &>/dev/null; then | |
| echo "Azure CLI is logged in." | |
| else |
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
Show hidden characters
| // I'm tired of extensions that automatically: | |
| // - show welcome pages / walkthroughs | |
| // - show release notes | |
| // - send telemetry | |
| // - recommend things | |
| // | |
| // This disables all of that stuff. | |
| // If you have more config, leave a comment so I can add it!! | |
| { |
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
| # credentials are merged with .kube/config | |
| az login | |
| for account in dev nonprod prod; do | |
| echo "Changing to us-mbs-${account}" | |
| az account set --name "us-mbs-${account}" | |
| for application in linux win; do | |
| for cluster in eastus eastus-backup; do | |
| if [[ "${cluster}" =~ "backup" ]]; then |
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
| get-ubuntu-pod () { | |
| cat <<EOF | kubectl apply "$@" -f - | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: ubuntu | |
| labels: | |
| app: ubuntu | |
| spec: | |
| affinity: |
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/sh | |
| [ -d ".git" ] && echo "This script must be run outside of a git repo" && exit 1 | |
| echo "Source of Truth - Branch (DEV/NONPROD/PROD)?" | |
| read branch_truth | |
| BT=${branch_truth,,} | |
| echo "Source of Truth - Cluster (A/B)?" | |
| read cardnial_truth |
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/sh | |
| echo "Live Clusters" | |
| DEV_SERVICES=`az network dns record-set cname show \ | |
| --subscription us-mbs-dev \ | |
| --resource-group app-dns-prod-eastus2 \ | |
| --zone-name us-mbs-dev.azure.lnrsg.io \ | |
| --name dev | jq -r '.cnameRecord.cname' | cut -f1 -d\.` | |
| DEV_LEGACY=`az network dns record-set cname show \ | |
| --subscription us-mbs-dev \ |
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
| # credentials are merged with .kube/config | |
| az login | |
| for account in dev nonprod prod; do | |
| echo "Changing to us-mbs-${account}" | |
| az account set --name "us-mbs-${account}" | |
| for application in linux win; do | |
| for cluster in eastus eastus-backup; do | |
| if [[ "${cluster}" =~ "backup" ]]; then |
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
| https://pureinfotech.com/bring-back-classic-context-menu-windows-11 |
NewerOlder