A list of all the region names and locations for Azure
You can recreate the list anytime using this command:
az account list-locations -o table| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory)] | |
| [String] | |
| $PrivateLinkDnsForwarderIpAddress | |
| ) | |
| $privatelinkDomains = @("azure-automation.net", | |
| "database.windows.net", | |
| "sql.azuresynapse.net", |
| # Windows Subsystem for Linux | |
| wsl --install -d Ubuntu | |
| # winget | |
| # work / tools | |
| winget install -s winget --id Microsoft.Powershell | |
| winget install -s winget --id Git.Git | |
| winget install -s winget --id 7zip.7zip | |
| winget install -s winget --id Foxit.FoxitReader | |
| # winget install -s winget --id Microsoft.EdgeWebView2Runtime |
| variable "match_comment" { default = "/(?U)(?m)(?s)(^#.*$)/" } | |
| variable "match_empty_line" { default = "/(?m)(?s)(^[\r\n])/" } | |
| resource "helm_release" "myapp" { | |
| name = "myapp" | |
| chart = "${path.module}/charts/myapp" | |
| values = [ | |
| replace( | |
| replace( | |
| templatefile("${path.module}/templates/values-override.yaml.tpl", { |
| /* | |
| Snippet is nuts and bolts for creating/moving to an isolated tempdb drive. | |
| After you run this, SQL Server must be restarted for it to take effect | |
| */ | |
| DECLARE @DriveSizeGB INT = 40 | |
| ,@FileCount INT = 9 | |
| ,@InstanceCount TINYINT = 1 | |
| ,@VolumeBuffer DECIMAL(8, 2) = .8 /* Set to amount of volume TempDB can fill. */ | |
| ,@RowID INT | |
| ,@FileSize VARCHAR(10) |
| $source = '\\path\to\source' | |
| $destination = '\\path\to\dest' | |
| robocopy "$source" "$destination" /zb /e /xf * | |
| <# | |
| See https://ss64.com/nt/robocopy.html for notes | |
| /zb - If you get access denied on a folder, try using backup mode to access it (see http://www.rainingforks.com/blog/2015/suggested-robocopy-switches-explained.html for detail) | |
| /e - Copy subfolders (/s), including empty ones. | |
| /xf * - exclude files matching a filename pattern; in this case any filename, so only copy directories | |
| Note: dest will contain the child folders of source; not source itself. |
Here's how to get BitWarden to treat these three different types of Amazon logins as separate
Set URI 1 to Exact with a value of
https://www.amazon.com/ap/signin?_encoding=UTF8&ignoreAuthState=1&openid.assoc_handle=usflex&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.pape.max_auth_age=0&openid.return_to=https%3A%2F%2Fwww.amazon.com%2F%3Fref_%3Dnav_custrec_signin&switch_account=
| <UserSettings> | |
| <override-colours caret="e6e6fa" indentGuides="282828" /> | |
| <override-classes> | |
| <style-class name="default" font="Monaco" back="272828" fore="fafafa" /> | |
| <style-class back="222222" fore="666666" name="linenumbers"></style-class> | |
| <style-class name="comment" fore="d500d5"/> | |
| <style-class name="keyword" fore="f47a00" bold="true"/> | |
| <style-class name="string" fore="5fff61" /> | |
| <style-class name="number" fore="fafafa" /> | |
| <style-class name="identifier" fore="fddf39" /> |
| <# | |
| Prerequisites: Windows PowerShell 5.1, PowerShell (Core) (v6+) - MAY work in earlier versions | |
| License: MIT | |
| Author: Michael Klement <mklement0@gmail.com> | |
| DOWNLOAD and INSTANT DEFINITION OF THE FUNCTION: | |
| irm https://gist.github.com/mklement0/83e8e6a2b39ecec7b0a14a8e631769ce/raw/Test-WinCredential.ps1 | iex |
| #Requires -RunAsAdministrator | |
| function Uninstall-Pester ([switch]$All) { | |
| if ([IntPtr]::Size * 8 -ne 64) { throw "Run this script from 64bit PowerShell." } | |
| #Requires -RunAsAdministrator | |
| $pesterPaths = foreach ($programFiles in ($env:ProgramFiles, ${env:ProgramFiles(x86)})) { | |
| $path = "$programFiles\WindowsPowerShell\Modules\Pester" | |
| if ($null -ne $programFiles -and (Test-Path $path)) { | |
| if ($All) { |