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
#! /bin/sh | |
# | |
# Get a directory name as input and grep the address the mail is sent to | |
# | |
# Based on a script by Joerg Reinhardt, but don't blame him for my mistakes | |
# Check for argument or help argument respectively | |
if [[ ($1 == "") || | |
($1 == "-h") || | |
($1 == "--help") || |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"variables": { | |
// Ensure the demo web app is unique within Azure | |
"uniqueSuffix": "[tolower(uniqueString(resourceGroup().Id))]", | |
"appPlanName": "[concat('demo-web-app-plan-', variables('uniqueSuffix'))]", | |
"appName": "[concat('demo-web-app-', variables('uniqueSuffix'))]", | |
// "Remote" Container Registry |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"functions": [ | |
{ | |
"namespace": "storage", | |
"members": { | |
"connectionString": { | |
"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( | |
[string]$resourceGroup, | |
[string]$storageAccountName | |
[string]$webAppName | |
) | |
Import-Module AzureRM.Storage | |
$sa = Get-AzureRmStorageAccount -ResourceGroupName $resourceGroup -Name $storageAccountName |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"resources": [ | |
{ | |
"type": "Microsoft.KeyVault/vaults", | |
"name": "LoremVault", | |
"apiVersion": "2015-06-01", | |
"location": "[resourceGroup().location]", | |
"properties": { |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"resources": [ | |
{ | |
"type": "Microsoft.Web/serverfarms", | |
"kind": "app", | |
"name": "LoremIpsumAppService", | |
"sku": { | |
"name": "B1" |
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 | |
Formats the output of the Test-HtmlValidity script | |
.DESCRIPTION | |
Formats the output of the Test-HtmlValidity script. Also support grouped input on the URL property. | |
.NOTES | |
Author: Michaël Hompus | |
License: This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Generic License. | |
.PARAMETER Messages | |
One or more output messages from the HTML validity PowerShell Script. |
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 | |
Validates one or more URLs against the W3C HTML validation service | |
.DESCRIPTION | |
Validates one or more URLs against the W3C HTML validation service. Returns info, warning and error messages. You can also switch on messages for valid pages. | |
.NOTES | |
Author: Michaël Hompus | |
License: This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Generic License. | |
.PARAMETER Urls | |
One or more URLs to check for HTML validity. |
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 | |
Returns all URLs and optional metadata from an XML Sitemap | |
.DESCRIPTION | |
Downloads an XML Sitemap and parses the content to retrieve all the information. If the file contains Sitemap Index entries those links will be followed as well. | |
.NOTES | |
Author: Michaël Hompus | |
License: This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Generic License. | |
.PARAMETER Url | |
The URL for a XML Sitemap file |
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
private void PullDownToRefreshPanel_LayoutUpdated(object sender, EventArgs e) | |
{ | |
if (this.targetScrollViewer == null) | |
{ | |
this.targetScrollViewer = FindVisualElement<ScrollViewer>(VisualTreeHelper.GetParent(this)); | |
if (this.targetScrollViewer != null) | |
{ | |
this.LayoutUpdated -= PullDownToRefreshPanel_LayoutUpdated; | |
// *snip* |