This is a collection of resources that I have bookmarked with regards to speaking at conferences.
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-AzCachedAccessToken { | |
<# | |
.SYNOPSIS | |
Get the Bearer token from the currently set AzContext | |
.DESCRIPTION | |
Get the Bearer token from the currently set AzContext. Retrieves from Get-AzContext | |
.EXAMPLE | |
Get-AzCachedAccesstoken |
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
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/brett.miller/.oh-my-zsh" | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
# Set name of the theme to load | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
DISABLE_AUTO_TITLE="true" | |
# Plugins |
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 Export-AzKeyVaultCertificate { | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory)] | |
[string] | |
$VaultName, | |
[Parameter(Mandatory)] | |
[string] | |
$CertName, |
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
Import-Module -Name Toolbox | |
Import-Module -Name Microsoft.PowerShell.UnixCompleters | |
Import-Module -Name Terminal-Icons | |
function BackOne { | |
Set-Location .. | |
} | |
function BackTwo { | |
Set-Location ../.. | |
} |
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
function Get-TwitchEvent { | |
[CmdletBinding(DefaultParameterSetName = 'Standard')] | |
param ( | |
[Parameter(Mandatory, | |
ParameterSetName = 'Standard')] | |
[string] | |
$UserName, | |
[Parameter(Mandatory, | |
ParameterSetName = 'Pipeline', |
NewerOlder