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
# From https://github.com/argoproj/argo-workflows/blob/master/examples/expression-destructure-json.yaml | |
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: expression-destructure-json- | |
annotations: | |
workflows.argoproj.io/version: ">= 3.1.0" | |
spec: | |
arguments: | |
parameters: |
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
param name string | |
param subnetId string | |
param publicIpId string | |
var nameFrontendPortHTTP = 'frontend-port-http' | |
var nameFrontendIPConfiguration = 'frontend-ip' | |
var nameHTTPListener = 'placeholder_http_listener_managed_by_bicep' | |
var nameBackendAddressPool = 'placeholder_backend_address_pool_managed_by_bicep' | |
var nameBackendHttpSettings = 'DefaultHTTP' |
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 Save-Download { | |
<# | |
.SYNOPSIS | |
Given a the result of WebResponseObject, will download the file to disk without having to specify a name. | |
.DESCRIPTION | |
Given a the result of WebResponseObject, will download the file to disk without having to specify a name. | |
.PARAMETER WebResponse | |
A WebResponseObject from running an Invoke-WebRequest on a file to download | |
.EXAMPLE | |
# Download Microsoft Edge |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "CF Type Search", | |
"type": "shell", | |
"command": "open -a \"Google Chrome\" \"https://docs.aws.amazon.com/search/doc-search.html?searchPath=documentation-guide&searchQuery=%22${selectedText}%22&x=0&y=0&this_doc_product=AWS+CloudFormation&this_doc_guide=User+Guide&doc_locale=en_us#facet_doc_product=AWS%20CloudFormation&facet_doc_guide=User%20Guide\"", | |
"problemMatcher": [], | |
"presentation": { | |
"reveal": "never" |
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
func getDeploymentStepIISSchema() *schema.Schema { | |
schmeaToReturn := &schema.Schema{ | |
Type: schema.TypeList, | |
Optional: true, | |
Elem: &schema.Resource{ | |
Schema: map[string]*schema.Schema{ | |
"web_application_parent_website_name": { | |
Type: schema.TypeString, | |
Description: "Create or update an IIS Web Application as a child of an existing IIS Web Site", | |
Optional: true, |
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
# Please Specify The FQDN or IP address of your DPM Server | |
$DPMServerName = "YOUR DPM SERVER" | |
# DSConfig.ps1 | |
$infoText = "This script will generate the DatasourceGroups.xml file in the current path. Once this file is created merge it with the same file name under %programfiles%\Microsoft DPM\DPM\Config directory on the DPM server. Read the documentation for more details." | |
echo $infoText | |
$header = "<?xml version=`"1.0`" encoding=`"utf-16`"?> `n <DatasourceGroup xmlns:xsi=`"http://www.w3.org/2001/XMLSchema-instance`" xmlns:xsd=`"http://www.w3.org/2001/XMLSchema`" xmlns=`"http://schemas.microsoft.com/2003/dls/GroupDatasourceByDisk.xsd`">" | |
$footer = "</DatasourceGroup>" |
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 "MaxSessions 50" | sudo tee -a /etc/ssh/sshd_config > /dev/null | |
sudo systemctl restart ssh.service |
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
netsh advfirewall firewall set rule name="WinRM-HTTP" new action=allow |
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
netsh advfirewall firewall set rule name="WinRM-HTTP" new action=block | |
C:/windows/system32/sysprep/sysprep.exe /generalize /oobe /unattend:C:/Windows/packer/unattended.xml /quiet /shutdown |
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
[cmdletbinding()] | |
param( | |
[switch]$SkipAtlas, | |
[Parameter(Mandatory=$true)] | |
[ValidateSet("Win2012R2", "Win2016StdCore")] | |
$OSName | |
) | |
switch ($OSName) | |
{ |
NewerOlder