Skip to content

Instantly share code, notes, and snippets.

View Mrsevic's full-sized avatar

Stefan Mršević Mrsevic

View GitHub Profile
@Mrsevic
Mrsevic / Windows Defender Exclusions VS 2022.ps1
Created August 9, 2023 10:02 — forked from Braytiner/Windows Defender Exclusions VS 2022.ps1
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null
$pathExclusions.Add($userPath + '\.dotnet') > $null
@Mrsevic
Mrsevic / RoslynAnalyzersAndCodeMetrics.md
Last active September 4, 2021 17:15
Roslyn_Analyzers_CodeMetrics

Suggested analyzers utilized during the demo session

You can either utilize NuGet packages to make analyzers available to everyone else or you can use the extensions so that they're strictly enforced.

Keep in mind to narrow down the scope to the single document in Visual Studio. You can do this by going into the visual studio 2019 options and changing:

C#-> Advanced> Background analysis scope

Extensions from VS Marketplace

@Mrsevic
Mrsevic / SportStaetten.md
Last active July 28, 2021 09:28
SportStaetten

SPORTAMT - REDESIGN SPORTSTAETTEN.CH

Canton Zurich

Security Directorate
Sports Department
Neumühlequai 88090 Zurich

28th of July, 2021

Request

What framework shall be used?(Angular as described in the offer)

@Mrsevic
Mrsevic / LazyInitializerEGs
Last active July 24, 2020 12:18
LazyInitializer
protected static readonly Lazy<int> CONST_LUNGHEZZA_SSCC_WITH_CONTROL_CHARACTER = new Lazy<int>(() => CONST_LUNGHEZZA_SSCC + 2); //2 per i caratteri di controllo (00) + 18 per
// singleton
namespace ConsoleApplication1
{
class Program
{
private Program()
{
}
@Mrsevic
Mrsevic / WhenAndWhyToUseTheNestedClasses.md
Last active September 4, 2021 16:35
When and why to use nested classes
@Mrsevic
Mrsevic / PageSpeedInsights.md
Last active September 4, 2021 16:35
Improvements on pages speed load for OnWms

@*ref. https://flaviocopes.com/javascript-async-defer/*@ @section styles{ @Scripts.RenderFormat("<script src='{0}' defer></script>", "/bundles/tabella") @Scripts.RenderFormat("<script src='{0}' defer></script>", "/bundles/barrafiltri") <script defer src="@Links.Areas.Magazzino.RaggruppamentiTrasferimenti.Scripts.CambioStato_ts"></script> <script defer src="@Links.Areas.Magazzino.RaggruppamentiTrasferimenti.Scripts.Index_ts"></script>

<script>
    var model = null;