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
- task: AzureCLI@2 | |
displayName: Check Azure Functions Deployed | |
env: | |
RESOURCE_GROUP: $(ResourceGroup) | |
FUNCTION_NAME: $(FunctionName) | |
inputs: | |
azureSubscription: Microsoft Azure Subscription | |
scriptType: bash | |
scriptLocation: inlineScript | |
inlineScript: | |
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 Get-QuotaPercentage { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory, | |
ValueFromPipeline)] | |
$InputObject | |
) | |
process { | |
foreach ($item in $InputObject) { |
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( | |
[String]$domainname = 'domain.com', | |
[String]$reportpath = "E:\ADHealthReport\", | |
[String]$percentlow = 10, | |
[String]$sendemailtime = "07.00A" | |
) |
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 Set-VSCodeSetting { | |
<# | |
.SYNOPSIS | |
Function for setting VS Code settings from command line | |
.DESCRIPTION | |
This function allows programmatic update of VS Code settings.json file | |
.PARAMETER FontSize | |
The font size to set |
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
{ | |
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
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 Get-RandomString { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[ValidateRange(12,[int]::MaxValue)] | |
[int] | |
$StringLength, | |
[int] | |
$SpecialCharacters = 4 | |
) |
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
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
echo "Updating homebrew..." | |
brew update |
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 Open-NativeApplication { | |
[CmdletBinding()] | |
[Alias('open')] | |
param ( | |
[Parameter()] | |
[ArgumentCompleter( | |
{ | |
param($Command, $Parameter, $WordToComplete, $CommandAst, $FakeBoundParams) | |
(Get-ChildItem /Applications).name -like "$WordToComplete*" | % {"'$_'"} | |
} |
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
{ | |
"builders": [ | |
{ | |
"capture_container_name": "vsts-buildimagetask", | |
"capture_name_prefix": "{{user `capture_name_prefix`}}", | |
"client_id": "{{user `client_id`}}", | |
"client_secret": "{{user `client_secret`}}", | |
"communicator": "winrm", | |
"image_offer": "{{user `image_offer`}}", | |
"image_publisher": "{{user `image_publisher`}}", |
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 Get-SendGridBouncedAddress { | |
[CmdletBinding()] | |
param ( | |
[string[]] | |
$EmailAddress, | |
[string] | |
$Token | |
) |
NewerOlder