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
internal static class SpinnerExtensions | |
{ | |
public static async Task Spinner(this Task task, Spinner spinner, Style? style = null, IAnsiConsole? ansiConsole = null) | |
{ | |
await SpinnerInternal<object>(task, spinner, style, ansiConsole); | |
} | |
public static async Task<T> Spinner<T>(this Task<T> task, Spinner spinner, Style? style = null, IAnsiConsole? ansiConsole = null) | |
{ | |
return (await SpinnerInternal<T>(task, spinner, style, ansiConsole))!; |
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
Write-Output "Cleaning exclusion paths" | |
$Paths=(Get-MpPreference).ExclusionPath | |
foreach ($Path in $Paths) { Remove-MpPreference -ExclusionPath $Path } | |
Write-Output "Cleaning exclusion extensions" | |
$Extensions=(Get-MpPreference).ExclusionExtension | |
foreach ($Extension in $Extensions) { Remove-MpPreference -ExclusionExtension $Extension } | |
Write-Output "Cleaning exclusion processes" |
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 Run-Step([string] $Description, [ScriptBlock]$script) | |
{ | |
Write-Host -NoNewline "Loading " $Description.PadRight(20) | |
& $script | |
Write-Host "`u{2705}" # checkmark emoji | |
} | |
[console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding | |
$stopwatch = [system.diagnostics.stopwatch]::StartNew() |
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
<assembly name="Spectre.Console"> | |
<member name="T:Spectre.Console.Cli.ICommand"> | |
<attribute ctor="M:JetBrains.Annotations.UsedImplicitlyAttribute.#ctor(JetBrains.Annotations.ImplicitUseTargetFlags)" > | |
<argument>5</argument> | |
</attribute> | |
</member> | |
<member name="T:Spectre.Console.Cli.CommandSettings"> | |
<attribute ctor="M:JetBrains.Annotations.UsedImplicitlyAttribute.#ctor(JetBrains.Annotations.ImplicitUseTargetFlags)" > | |
<argument>5</argument> | |
</attribute> |
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
{ | |
"final_space":true, | |
"osc99":false, | |
"console_title":false, | |
"console_title_style":"", | |
"console_title_template":"", | |
"blocks":[ | |
{ | |
"type":"prompt", | |
"alignment":"left", |
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
// This file was initially generated by Windows Terminal Preview 1.3.2382.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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
<assembly name="AutoMapper"> | |
<member name="T:AutoMapper.Profile"> | |
<attribute ctor="M:JetBrains.Annotations.UsedImplicitlyAttribute.#ctor(JetBrains.Annotations.ImplicitUseTargetFlags)" > | |
<argument>5</argument> | |
</attribute> | |
</member> | |
</assembly> |
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
CREATE EVENT SESSION [ShowPlanSpy-7d12bc47-1fe4-47b5-b728-4392b533bc6f] ON SERVER | |
ADD EVENT sqlserver.query_post_execution_showplan( | |
ACTION(sqlserver.plan_handle,sqlserver.query_hash,sqlserver.query_plan_hash,sqlserver.sql_text) | |
WHERE ([sqlserver].[equal_i_sql_unicode_string]([sqlserver].[database_name],N'StackOverflowMath'))) | |
WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=1 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=OFF,STARTUP_STATE=OFF) | |
GO | |
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
using System; | |
using System.Reflection; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
try |
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
using System; | |
using System.Collections.Generic; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Diagnosers; | |
using BenchmarkDotNet.Running; | |
namespace Benchmark | |
{ | |
class Program |
NewerOlder