Skip to content

Instantly share code, notes, and snippets.

View Braytiner's full-sized avatar
🏠
Working from home

Braytiner Braytiner

🏠
Working from home
  • Empresis Desenvolvimento de Sistemas
  • Americana
View GitHub Profile
@Braytiner
Braytiner / transcrever2.py
Created October 5, 2026 03:49
Scripts para transcrição de vídeos utilizando o faster-whisper e validação de legendas geradas para o youtube
import os
import time
from faster_whisper import BatchedInferencePipeline, WhisperModel
MODELO = "large-v3-turbo" # ou "large-v3-turbo" para ficar bem mais rápido
DEVICE = "cpu" # "cuda" se tiver GPU NVIDIA no WSL
COMPUTE_TYPE = "int8" # "float16" na GPU
USAR_BATCH = True # True usa BatchedInferencePipeline (mais rápido, mais memória)
BATCH_SIZE = 8
@Braytiner
Braytiner / braytiner.omp.json
Last active May 15, 2026 22:26
A theme for Powershell using ohmyposh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
@Braytiner
Braytiner / cert-reimaginated.omp.json
Created May 14, 2026 09:47
A reimaginated style for ohmyposh cert theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#111111",
"background": "#15C2CB",
"options": {
@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
@Braytiner
Braytiner / Windows Defender Exclusions VS 2022.ps1
Last active July 25, 2026 21:11
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 / 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 / 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 / gist:9c8191bb8e215fd7aab16f2cfb507aaa
Created May 16, 2019 14:59
Downloading Windows Spotlight Images via PowerShell command
Just create a folder on your desktop called Pics, open PowerShell and paste the following command press Enter:
Get-ChildItem -Path $env:localappdata\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets | Copy-Item -dest {"$home\desktop\pics\" + $_.BaseName + ($i++) +".jpg" }
All the images from the LocalState/Assets folder should be there in Pics folders. You’ll need to delete out the useless files, but
otherwise it saves you a lot of time. Enjoy!
@Braytiner
Braytiner / Windows Defender Exclusions VS 2019.ps1
Last active December 6, 2024 15:47 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
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:\source\repos') > $null
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio Services') > $null
$pathExclusions.Add($userPath + '\AppData\Local\GitCredentialManager') > $null
@Braytiner
Braytiner / theme.txt
Created February 18, 2019 11:37
Tema personalizado VS Code
"editor.tokenColorCustomizations": {
"[Visual Studio Dark]": {
"comments": "#444444",
"functions": "#AAAAAA",
"keywords": "#00AAAA",
// "numbers": "#009999",
"strings": "#BF7766",
"types": "#AAAAAA",
"variables": "#AAAAAA",
"textMateRules": [