This file contains 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
ECHO Installing apps | |
ECHO Configure chocolatey | |
choco feature enable -n allowGlobalConfirmation | |
choco install visualstudiocode | |
choco install notepadplusplus | |
choco install jabra-direct | |
#choco install wox | |
choco install 7zip |
This file contains 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"?> | |
<applicationInitialization | |
doAppInitAfterRestart="true" | |
skipManagedModules="true" | |
remapManagedRequestsTo="WarmUp.html" | |
> | |
<!--This initialization in essential for autoscaling/swapping. | |
List the pages that need to be warmed up before traffic is allowed in the webapp. NOTE:No duplicate entries allowed--> | |
<add initializationPage="/" /> |
This file contains 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
//Allowed Azure Regions | |
asia-pacific-east | |
asia-pacific-southeast | |
australia-central | |
australia-central-2 | |
australia-east | |
australia-southeast | |
brazil-south | |
canada-central | |
canada-east |
This file contains 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
# HasTooManyRenderings determines if the specified item has more than the specified number of renderings. | |
$startItem = Get-Item -Path master:\content\ | |
$resultsPageSize = 30 | |
$props = @{ | |
Title = "Find item clones" | |
Description = "This report will analyse the branch and will tell you which items clones ." | |
Width = 450 | |
Height = 300 |
This file contains 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
# HasTooManyRenderings determines if the specified item has more than the specified number of renderings. | |
$startItem = Get-Item -Path master:\content\ | |
$maxRenderings = 30 | |
$resultsPageSize = 30 | |
$props = @{ | |
Title = "Count renderings on items" | |
Description = "This report will analyse the branch and will tell you which items have a renderings count greater than the provided parameters ." | |
Width = 450 |
This file contains 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
$item = gi "/sitecore/content/Habitat Sites/Habitat Home/home" -Language 'en' | |
$sharedLayoutField = $item.Fields[[Sitecore.FieldIDs]::LayoutField] | |
$finalLayoutField = $item.Fields[[Sitecore.FieldIDs]::FinalLayoutField] | |
$sharedLayoutXml = [Sitecore.Data.Fields.LayoutField]::GetFieldValue($sharedLayoutField) | |
$finalLayoutXml = [Sitecore.Data.Fields.LayoutField]::GetFieldValue($finalLayoutField) | |
$sharedLayout = [Sitecore.Layouts.LayoutDefinition]::Parse($sharedLayoutXml) | |
$finalLayout = [Sitecore.Layouts.LayoutDefinition]::Parse($finalLayoutXml) |
This file contains 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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> | |
<sitecore> | |
<log4net> | |
<root> | |
<priority set:value="DEBUG" /> | |
</root> | |
</log4net> | |
</sitecore> | |
</configuration> |
This file contains 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"?> | |
<!-- | |
NOTE : Using this xdt file sets up the web.config for CD servers, | |
regular web.config file is set up for CM servers. | |
Applying transform through VSTS using XDT Tranform task before CD App Service install | |
--> | |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<location path="sitecore/api" xdt:Transform="InsertBefore(/configuration/system.web)"> | |
<system.web> | |
<authorization> |
This file contains 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
$targetSite = "https://hostname" | |
Write-Host "Requesting " $targetSite | |
while($true) | |
{ | |
Invoke-WebRequest -TimeoutSec 120 -method head -Uri $targetSite | Select-Object StatusCode, StatusDescription | |
Start-Sleep -Seconds 60 | |
} |
This file contains 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
function AddItemToCollection($itemId) | |
{ | |
$itemCollection.Add($itemId) | |
} | |
function GetRenderings() | |
{ | |
Get-Rendering -Item $startItem -FinalLayout | Foreach-Object { | |
if($_.ItemID) |
NewerOlder