🚴♂️
This file contains hidden or 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": "http://json-schema.org/draft-07/schema#", | |
"description": "Schema for .NET Aspire Manifest", | |
"type": "object", | |
"properties": { | |
"resources": { | |
"type": "object", | |
"description": "A list of the resources", | |
"patternProperties": { | |
"^[a-zA-Z0-9]+$": { |
This file contains hidden or 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
<Target Name="SetContainerTagTarget" BeforeTargets="CoreCompile"> | |
<PropertyGroup> | |
<ContainerImageTag>$(GitCommitId)</ContainerImageTag> | |
</PropertyGroup> | |
</Target> |
This file contains hidden or 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( | |
[Parameter(Mandatory = $true, HelpMessage = "Your Azure subscription ID")] | |
[string]$subscriptionId, | |
[Parameter(Mandatory = $true, HelpMessage = "The name of the managed identity")] | |
[string]$managedIdName, | |
[Parameter(Mandatory = $true, HelpMessage = "The name of the resource group")] | |
[string]$resourceGroupName, | |
This file contains hidden or 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
// Open the file in an editor | |
if (createdFile) { | |
vscode.workspace.openTextDocument(createdFile).then((document) => { | |
vscode.window.showTextDocument(document); | |
}); | |
} |
This file contains hidden or 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
# Use .NET 8 SDK | |
# Ensures .NET 8 SDK is installed/used | |
- task: UseDotNet@2 | |
inputs: | |
version: 8.0.x |
This file contains hidden or 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 vs { | |
$p = Get-Location | |
$sln = gci *.sln,*.csproj -n -recurse | select -f 1 | |
Write-Output "Opening $p\$sln" | |
Start-Process -FilePath "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv.exe" -ArgumentList "$p\$sln" | |
} |
This file contains hidden or 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://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"version": 2, | |
"final_space": true, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ |
This file contains hidden or 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
<!-- I need the parameter of the foreground to be the current value which will serve as a default if not converted --> | |
<TextBlock Foreground="{Binding Path=Conclusion, | |
Converter={StaticResource ConclusionColorConverter}, | |
ConverterParameter={Binding RelativeSource={RelativeSource Mode=Self}}}" Text="{Binding Conclusion}" /> |
This file contains hidden or 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
namespace TempStick; | |
public class BooleanConverter : JsonConverter<bool> | |
{ | |
public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
{ | |
if (reader.TokenType == JsonTokenType.String) | |
{ | |
return string.Equals(reader.GetString(), "1", StringComparison.OrdinalIgnoreCase); | |
} |
This file contains hidden or 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
["number","title","state","labels"], | |
(.[] | [ | |
.number, | |
.title, | |
.state, | |
(.labels | if length == 0 then "no-label" elif length > 1 then map(.name) | join(",") else .[0].name end) | |
]) | @csv |