Skip to content

Instantly share code, notes, and snippets.

View Braytiner's full-sized avatar
😎

Braytiner Braytiner

😎
  • Empresis Desenvolvimento de Sistemas
  • Americana
  • 22:37 (UTC -03:00)
View GitHub Profile
@Braytiner
Braytiner / gist:f2ef44b326b7021d74da4e63e7dbb333
Created January 30, 2020 20:08
ASP.net core auth cookie not being set in Google Chrome when running in dev
What you could try in Chrome is this: Open the developer-tools goto tab Application and in the left pane choose Clear storage.
Under the diagram on the right click Clear site data even if the usage shows 0 Bytes used. Do it anyway.
@Braytiner
Braytiner / TiposCamposDataAnnotations.cs
Last active February 7, 2020 13:54
Correlação de tipos e annotations do C# para tipos do MySql
/**********************************************************************************************************************************
Enumerados
**********************************************************************************************************************************/
//Preenchimento obrigatório, com valor menor que dez e valor default
[Column(TypeName = "tinyint(2) default 1")]
public Pessoa Pessoa { get; set; } = Pessoa.Juridica;
//Sem preenchimento obrigatório, com valor menor que dez
[Column(TypeName = "tinyint(2)")]
@Braytiner
Braytiner / Windows Defender Exclusions VS 2022.ps1
Last active August 12, 2025 13:46
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
@Braytiner
Braytiner / Windows Defender Exclusions VS 2019.ps1
Created November 19, 2021 14:59
Adds Windows Defender exclusions for Visual Studio 2019
$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