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
Import-Module WebAdministration | |
$results = Get-ChildItem "IIS:\SslBindings\" | ForEach-Object { | |
$store = $_.Store | |
$thumbprint = $_.Thumbprint | |
$cert = Get-ChildItem -Path Cert:\LocalMachine\$store | Where-Object { $_.Thumbprint -eq $thumbprint } | |
[PSCustomObject]@{ | |
Host = $_.Host; |
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
<rule name="ForceWWW" stopProcessing="true"> | |
<match url=".*" ignoreCase="true" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^yoursite.com" /> | |
</conditions> | |
<action type="Redirect" url="https://www.yoursite.com/{R:0}" redirectType="Permanent" /> | |
</rule> | |
<rule name="HTTPtoHTTPS" stopProcessing="true"> | |
<match url="(.*)" ignoreCase="false" /> |
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
cls | |
# CONSTANTS | |
$inkscapePath = "C:\Program Files\Inkscape\bin\inkscape.com" | |
# Get files to process | |
$sourcePath ="[[UPDATE WITH YOUR PAT]]" | |
$sourceFiles = Get-ChildItem -Path $sourcePath -File -Recurse -Filter *.svg |
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
# Get files to process | |
$sourcePath ="[[UPDATE WITH FOLDER PATH]]" | |
$sourceFiles = Get-ChildItem -Path $sourcePath -File -Recurse -Filter *.png | |
# | |
$currentFolder = "" | |
$generatedGalery = "" |
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
# Allow remote scripts | |
Set-ExecutionPolicy AllSigned | |
# Install SqlServer powershell modules | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
Install-Module -Name SqlServer | |
# Misc | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All -All |
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"?> | |
<!-- choco install chocolatey-packages.config -y --> | |
<packages> | |
<!-- Windows Features --> | |
<package id="webdeploy" /> | |
<package id="urlrewrite" /> | |
<!-- Default Apps --> | |
<package id="googlechrome" /> | |
<package id="firefox" /> |
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
# Run this script in Sitecore Powershell Extensions | |
# It will delete the minifed files from master and publish the deletions to web | |
# Next time the site is visited they should be re-generated (if they aren't check your settings http://bit.ly/2TfrcfC) | |
# TODO: When publishing, there might be a better way to target folders in the media library instead of the hardcoded list | |
$masterItems = Get-Item -Path master: -Query "/sitecore/media library//*[@@key='optimized-min']" | |
$webItems = Get-Item -Path web: -Query "/sitecore/media library//*[@@key='optimized-min']" | |
Write-Host "Master Items: $($masterItems.length)" |
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
# README | |
# This script will delete all deployments in an Azure resource group older than X Days | |
# You can use this script to count hom many deployments exist: Get-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroup | measure | |
# Variables | |
$subscriptionName = '{{azure subscription name}}' | |
$resourceGroupName = '{{azure resource group name}}' | |
$daysOldToDelete = -150 |
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
;SQL Server 2016 Configuration File | |
[OPTIONS] | |
; Specifies a Setup work flow, like INSTALL, UNINSTALL, or UPGRADE. This is a required parameter. | |
ACTION="Install" | |
; Specifies that SQL Server Setup should not display the privacy statement when ran from the command line. | |
SUPPRESSPRIVACYSTATEMENTNOTICE="False" |
NewerOlder