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
| public static class EntityCopy | |
| { | |
| public static void UpdateEntity<T>(T source, T destination) | |
| where T : class | |
| { | |
| var properties = PropertyAccessorCache.GetCachedProperties<T>(); | |
| foreach (var property in properties.Where(property => property is { CanRead: true, CanWrite: true })) | |
| { | |
| property.SetValue(destination, property.GetValue(source)); | |
| } |
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
| { | |
| "manifest_version": 3, | |
| "name": "Repomix Helper", | |
| "version": "1.0", | |
| "description": "Generate repomix output from GitHub repositories with advanced configuration", | |
| "permissions": [ | |
| "activeTab", | |
| "scripting", | |
| "storage" | |
| ], |
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 | |
| # Exit on any error | |
| set -e | |
| # Function to log status with timestamp | |
| log() { | |
| echo "[$(date '+%Y-%m-%d %H:%M:%S')] $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
| // ----------------------------------------------------------------------------- | |
| // Azure RG Smart Janitor - Enhanced Cleanup Tool | |
| // Run with: dotnet run smart-cleanup.cs | |
| // Targets: .NET 10 Preview 4+ | |
| // ----------------------------------------------------------------------------- | |
| #:package Azure.Identity@1.* | |
| #:package Azure.ResourceManager@1.* | |
| #:package Azure.ResourceManager.Compute@1.* | |
| #:package Azure.ResourceManager.Storage@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
| using System.Runtime.Caching; | |
| using System.Threading; | |
| using Microsoft.Extensions.Options; | |
| namespace CabMD.Caching; | |
| /// <summary> | |
| /// Configuration for the L1 in-memory cache layer that sits in front of | |
| /// the distributed (Redis) cache. Bind to <c>Caching:L1</c> in appsettings. | |
| /// </summary> |
OlderNewer