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( | |
[string][Parameter( | |
Mandatory = $true, | |
ValueFromPipeline = $true | |
)]$uri, | |
$TimeoutSec = 5 | |
) | |
process { |
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
function Compress-String { | |
[CmdletBinding()] | |
param ( | |
[parameter(ValueFromPipeline)][string]$StringContent | |
) | |
process { | |
$ms = New-Object System.IO.MemoryStream | |
$cs = New-Object System.IO.Compression.GZipStream($ms, [System.IO.Compression.CompressionMode]::Compress) |
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
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
(New-Object System.Net.WebClient).DownloadFile("https://octopus.com/downloads/latest/WindowsX64/OctopusServer", "Octopus.Server.msi") | |
Start-Process "msiexec.exe" -argumentlist $("/i", "Octopus.Server.msi", "/qn", "/norestart") -Wait -NoNewWindow |
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
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
(New-Object System.Net.WebClient).DownloadFile("http://aka.ms/downloadazcopy", "azcopy.msi") | |
Start-Process "msiexec.exe" -argumentlist $("/i", "azcopy.msi", "/qn", "/norestart") -Wait -NoNewWindow | |
$azcopy="c:\program files (x86)\microsoft sdks\azure\azcopy\azcopy.exe" |
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
resource "null_resource" "naming" { | |
triggers { | |
nameSuffix = "${var.environment}${substr(sha256(format(var.resourceGroupName,var.location,var.subscription_id)),0,13)}" | |
} | |
} |
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 ( | |
[string]$DirectoryPath, | |
[switch]$KeepDownload | |
) | |
process { | |
if ($DirectoryPath) { | |
Write-Verbose "User requested download location $DirectoryPath" |
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
git commit --allow-empty -m 'My special commit ' -m ' _____ ' -m ' | || ' -m ' |\___/| ' -m ' | | ' -m ' | | ' -m ' | | ' -m ' | | ' -m ' | | ' -m ' | | ' -m ' ____||____|____ ' -m ' / | | \ ' -m ' / | | | \ ' -m '| | | | | ' -m '| | | | | ' -m '| | | ' -m '| | | ' -m '| / ' -m '| / ' -m ' \ / ' -m ' \ / ' -m ' | | ' -m ' | | ' |
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
# this is a comment | |
# Colin's mom was here! | |
# this is another comment |
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
docker image inspect IMAGE_NAME | jq .[0].RootFS.Layers | awk '{print " # "$$0}' | tee -a IMAGE_NAME.txt |
OlderNewer