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
| <# | |
| The MIT License (MIT) | |
| Copyright (c) 2026 Ben Brandt | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
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
| using Microsoft.Data.SqlClient; | |
| using Respawn; | |
| public static class RespawnerSqlServerExtensions | |
| { | |
| extension(Respawner respawner) | |
| { | |
| /// <summary> | |
| /// Reset SQL Server database to the state captured by the respawner | |
| /// </summary> |
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
| # No export is required for deleting a key. Specify resource group and the key name to be deleted across | |
| # all Azure App Config resources in the specified resource group. | |
| # `az appconfig kv import` does not have an option to sync, to delete any keys that do not exist in the file | |
| param ($resourceGroupName, $keyName) | |
| $appConfigResources = az appconfig list --resource-group $resourceGroupName --query "[].name" -o tsv | |
| mkdir -Force $resourceGroupName | Out-Null | |
| foreach($appConfigName in $appConfigResources) |
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
| $webAppIds = az webapp list --query "[].{id: id}" --output tsv | |
| foreach ($resource in $webAppIds) { | |
| Write-Output "Deleting diagnostic settings for $resource" | |
| $diagnosticNames = az monitor diagnostic-settings list --resource "$resource" --query "[].{id: id}" --output tsv | |
| foreach ($diagName in $diagnosticNames) { | |
| az monitor diagnostic-settings delete --name "$diagName" --resource "$resource" | |
| } | |
| } |
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
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusionsToRemove = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| # Disable tracking of last access for files if enabled | |
| fsutil.exe behavior query disableLastAccess | |
| fsutil.exe behavior set disableLastAccess 1 | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null |
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 | |
| programname=$0 | |
| function usage { | |
| echo "" | |
| echo "Read 4 layers of configuration from an App Configuration Service to produce a complete appsettings.json" | |
| echo "* Global/cross-application configuration for all environments" | |
| echo "* Global/cross-application configuration for specified environment" | |
| echo "* App-specific configuration for all environments" | |
| echo "* App-specific configuration for specified environment" |
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 | |
| # Migrate all configuration used by an Azure App Service into an App Configuration Service. | |
| # Assumes that the app has a layered config of: | |
| # appsettings.json-> App Service AppSettings -> App Service Connection Strings -> App Configuration Service | |
| # Migrate all settings to the App Configuration Service in the proper layered order optionally using a new | |
| # key prefix. | |
| # Prerequisite: Manually copy/download appsettings.json into this folder |
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
| # Note: AI resource must already exist in this same resource group | |
| # May need: | |
| # az extension add --name application-insights | |
| param( | |
| [Parameter()] | |
| [string]$ResourceGroup, | |
| [Parameter()] | |
| [string]$AppInsightsName | |
| ) |
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
| //--------------------------------------------------------------------------- | |
| #ifndef FPExceptionDisablerH | |
| #define FPExceptionDisablerH | |
| //--------------------------------------------------------------------------- | |
| #if defined (_MSC_VER) | |
| // Microsoft Visual C++ |
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
| using DevExpress.Xpf.Grid; | |
| namespace BBrandtTX.Controls | |
| { | |
| public class MyGridControl : GridControl | |
| { | |
| public bool IsUpdateLocked | |
| { | |
| get | |
| { |
NewerOlder