I hereby claim:
- I am heaths on github.
- I am heaths (https://keybase.io/heaths) on keybase.
- I have a public key whose fingerprint is 2BBE FFB8 9070 A92F A199 3955 6730 9B05 E115 44FB
To claim this, I am signing this object:
#Requires -Version 3 | |
# The MIT License (MIT) | |
# Copyright (C) Microsoft Corporation. All rights reserved. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT |
#Requires -Version 4.0 | |
#Requires -RunAsAdministrator | |
[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] | |
param ( | |
[Parameter()] | |
[switch] $Force | |
) | |
$yesToAll = $false |
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Enumeration-style Structure</Title> | |
<Keywords> | |
<Keyword>enum</Keyword> | |
</Keywords> | |
<Shortcut>enumStruct</Shortcut> | |
</Header> |
I hereby claim:
To claim this, I am signing this object:
{ | |
"editor.fontFamily": "Fira Code, Hack, Consolas, monospace", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 12, | |
"editor.renderControlCharacters": false, | |
"editor.renderWhitespace": "all", | |
"diffEditor.ignoreTrimWhitespace": false, | |
"terminal.external.windowsExec": "C:\\Program Files\\PowerShell\\7\\pwsh.exe", | |
"terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\7\\pwsh.exe", | |
"terminal.integrated.shellArgs.windows": [ |
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": "closePane", | |
"keys": "ctrl+alt+w" | |
}, | |
{ |
$E[0;38;5;231;48;5;31m$M$E[38;5;31;48;5;240m$S$E[38;5;231m$P$S$E[0;38;5;240m$E[0m$_$E[38;5;231;48;5;240m$+$E[0;38;5;240m$E[0m$S |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Azure.Identity" Version="1.2.1" /> | |
<PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.1.0" /> |
#Requires -Version 5.1 | |
#Requires -Modules 'Appx' | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true, Position=0)] | |
[string] $Destination, | |
[Parameter()] | |
[ValidateNotNullOrEmpty()] |
$vaults = az resource list --resource-type Microsoft.KeyVault/vaults | convertfrom-json | |
$managedHsms = az resource list --resource-type Microsoft.KeyVault/managedHSMs | convertfrom-json | |
$lookup = $vaults + $managedHsms | group id -asstring -ashashtable | |
function get-delta ($dt) { | |
if ($dt -ge [datetime]::now.adddays(-1)) { | |
'<= 1d' | |
} elseif ($dt -ge [datetime]::now.adddays(-7)) { | |
'<= 7d' | |
} elseif ($dt -ge [datetime]::now.adddays(-30)) { |