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
| # ============================================ | |
| # 1. Set your values here | |
| # ============================================ | |
| $AccessKey = 'AKIAY…..' | |
| $SecretKey = 'xxxx' | |
| $Region = "xxx" | |
| $BucketName = "bucketname" | |
| $Prefix = "packages" | |
| $LocalFile = 'C:\testfile.zip' |
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
| Category | AWS Service | Azure Equivalent | Description | |
|---|---|---|---|---|
| Compute | EC2 | Azure Virtual Machines | Scalable virtual servers in the cloud. | |
| Compute | Lambda | Azure Functions | Event-driven, serverless compute that runs code on demand. | |
| Compute | Elastic Beanstalk | Azure App Service | PaaS for deploying and scaling web apps quickly. | |
| Compute | ECS | Azure Container Apps | Container orchestration platform for microservices. | |
| Compute | EKS | Azure Kubernetes Service (AKS) | Managed Kubernetes container orchestration. | |
| Compute | Fargate | Azure Container Instances | Serverless compute engine for containers. | |
| Compute | Lightsail | Azure App Service Plans | Simplified VM + app hosting for small projects. | |
| Storage | S3 | Azure Blob Storage | Object storage for unstructured data, highly scalable. | |
| Storage | EBS | Azure Managed Disks | Persistent block storage for VMs. |
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
| # Create timestamp | |
| $timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" | |
| # Set the output path. This will store in Windows User profile's document path. Modify as required. | |
| $outputPath = "$env:USERPROFILE\Documents\Persistent_History_$timestamp.txt" | |
| # Get the history from History file and store in the output path. Here it gets last 1000 commands executed | |
| Get-Content (Get-PSReadLineOption).HistorySavePath | Select-Object -Last 1000 | Out-File $outputPath |
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
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory = $false)] | |
| [hashtable]$WatchDirectoryParameters | |
| ) | |
| # Set logging and error handling preferences | |
| $ErrorActionPreference = "Stop" | |
| $InformationPreference = "Continue" | |
| $timeFormat = "HH:mm:ss:fff" |
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
| # Path to the system hosts file | |
| $hostsFile = "C:\Windows\System32\drivers\etc\hosts" | |
| try { | |
| # List of Docker special DNS names used to refer to the host | |
| $DnsEntries = @("host.docker.internal", "gateway.docker.internal") | |
| # Attempt to resolve each DNS entry | |
| foreach ($Entry in $DnsEntries) { | |
| Resolve-DnsName -Name $Entry -ErrorAction Stop # Throws error if resolution fails |
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
| $itemId = '--Your Item id--' | |
| $fieldId = '{40E50ED9-BA07-4702-992E-A912738D32DC}' #blob field id. Please change as per requirement if required. | |
| $outputFile = 'd:\custom.js' #file path to save | |
| # SQL connection | |
| $connectionString = "--your connection string--" | |
| $query = @" | |
| DECLARE @ItemId UNIQUEIDENTIFIER = '$itemId'; | |
| DECLARE @BlobFieldId UNIQUEIDENTIFIER = '$fieldId'; | |
| DECLARE @BlobId UNIQUEIDENTIFIER; |
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 AutoFixture; | |
| using AutoFixture.AutoNSubstitute; | |
| using AutoFixture.Xunit2; | |
| namespace Foundation.Tests.Extensions | |
| { | |
| internal class AutoDbDataAttribute :AutoDataAttribute | |
| { | |
| public AutoDbDataAttribute() | |
| :base(() => new Fixture() |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
| <sitecore role:require="Standalone or ContentDelivery or ContentManagement"> | |
| <pipelines> | |
| <owin.initialize> | |
| <processor type="Sitecore.Owin.Authentication.IdentityServer.Pipelines.Initialize.LogoutEndpoint, Sitecore.Owin.Authentication.IdentityServer"> | |
| <patch:delete /> | |
| </processor> | |
| </owin.initialize> | |
| </pipelines> |
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
| kind: Role | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| namespace: production | |
| name: cron-runner | |
| rules: | |
| - apiGroups: ["autoscaling"] | |
| resources: ["horizontalpodautoscalers"] | |
| verbs: ["patch", "get"] |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sitecore Settings List</title> | |
| <style> | |
| #settings { | |
| font-family: Arial, Helvetica, sans-serif; | |
| border-collapse: collapse; |
NewerOlder