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
$commandOutput = @' | |
save image[D:\2D\Test\Just Flow Dark 03.png]: 50 of 4500, 20% complete | |
save image[D:\2D\Test\Just Flow Dark 03.png]: 100 of 4500, 40% complete | |
save image[D:\2D\Test\Just Flow Dark 03.png]: 150 of 4500, 60% complete | |
save image[D:\2D\Test\Just Flow Dark 05.png]: 50 of 4500, 20% complete | |
save image[D:\2D\Test\Just Flow Dark 03.png]: 200 of 4500, 80% complete | |
save image[D:\2D\Test\Just Flow Dark 03.png]: 250 of 4500, 90% complete | |
save image[D:\2D\Test\Just Flow Dark 05.png]: 100 of 4500, 40% complete | |
save image[D:\2D\Test\Just Flow Dark 05.png]: 150 of 4500, 60% complete | |
save image[D:\2D\Test\Just Flow Dark 05.png]: 200 of 4500, 80% complete |
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
stages: | |
- build:dotnet | |
default: | |
image: | |
name: gcr.io/kaniko-project/executor:debug | |
entrypoint: [""] | |
.job_template: | |
script: &script_definition |
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
Set-ExecutionPolicy RemoteSigned | |
Import-Module -Name SPE | |
$session = New-ScriptSession -Username admin -Password b -ConnectionUri https://platform | |
Invoke-RemoteScript -ScriptBlock { | |
Get-Item -Path "master:\content\Home" | |
} -Session $session |
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
# Install the PowerShell 7. To do this, run the following: | |
iex "& { $(irm 'https://aka.ms/install-powershell.ps1')} -UseMSI" | |
# Open PowerShell 7 and install the latest version of Az which includes Az.Functions | |
# Link to Az.Functions docs -- https://docs.microsoft.com/en-us/powershell/module/az.functions/?view=azps-4.3.0#functions | |
Install-Module Az | |
# Sign in to Azure | |
Login-AzAccount |
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
(irm 'https://api-myignite.techcommunity.microsoft.com/api/session/all') | | |
? title -match powershell | | |
% -Parallel { | |
iwr $($_.downloadVideoLink) -OutFile "C:\ignite\$($_.sessioncode).mp4" | |
} | |
# Originally tweeted by Anthony Allen | |
# https://twitter.com/PSAdm/status/1192909669947318272?s=19 |
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"?> | |
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<CompactSitecoreItemsInProjectFile>True</CompactSitecoreItemsInProjectFile> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | |
<!-- | |
In the default configuration of the global file, the values for a configuration in the global file supersede the values | |
in the project configuration. This behavior can be changed by specifying a condition on the property as follows: |
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"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
<sitecore> | |
<settings> | |
<setting name="EnableEventQueues"> | |
<patch:attribute name="value">false</patch:attribute> | |
</setting> | |
<setting name="Counters.Enabled"> | |
<patch:attribute name="value">false</patch:attribute> | |
</setting> |
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
#requires -version 5.1 | |
Function Get-DockerContainer { | |
[cmdletbinding(DefaultParameterSetName = "name")] | |
[alias("gdc")] | |
[OutputType("Get-DockerContainer.myDockerContainer")] | |
Param( | |
[Parameter(Position = 0, HelpMessage = "Enter a docker container name. The default is all running containers.", ParameterSetName = "name")] | |
[ValidateNotNullorEmpty()] |
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
# Base64 algorithm borrowed from https://en.wikibooks.org/wiki/Algorithm_Implementation/Miscellaneous/Base64 | |
function ConvertTo-Base64String ($string) | |
{ | |
$base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" | |
$result = [System.Text.StringBuilder]::new() | |
$pad = "" | |
$count = $string.Length % 3; | |
# string needs to be multiple of 3 characters |
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
<# | |
.SYNOPSIS | |
Resize an image | |
.DESCRIPTION | |
Resize an image based on a new given height or width or a single dimension and a maintain ratio flag. | |
The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original | |
file extension | |
.PARAMETER Width | |
The new width of the image. Can be given alone with the MaintainRatio flag | |
.PARAMETER Height |
NewerOlder