Skip to content

Instantly share code, notes, and snippets.

View sam9291's full-sized avatar

Samuel Poirier sam9291

View GitHub Profile
@sam9291
sam9291 / settings.jsonc
Last active May 25, 2024 16:16
VsCode Vim settings
{
"vim.smartRelativeLine": true,
"vim.leader": "<Space>",
"vim.hlsearch": true,
"vim.normalModeKeyBindingsNonRecursive": [
// NAVIGATION
// switch b/w buffers
{ "before": ["<S-h>"], "commands": [":bprevious"] },
{ "before": ["<S-l>"], "commands": [":bnext"] },
@sam9291
sam9291 / _vimrc
Last active May 25, 2024 16:31
VsVim Visual Studio 2022 VimRC
" Remap leader to space
:map <Space> <leader>
set relativenumber
" Navigation
nmap <S-h> :bprevious<cr>
nmap <S-l> :bnext<cr>
@sam9291
sam9291 / MassTransitInfinitRetryDefinitionExample.cs
Created June 27, 2023 18:08
Example of custom infinit mass transit retry policy in .net core.
using GreenPipes;
using GreenPipes.Policies;
using MassTransit;
using MassTransit.ConsumeConfigurators;
using MassTransit.Definition;
namespace Consumer.ConsumerDefinitions;
public class InfinitRetryDefinition<T> : ConsumerDefinition<T> where T : class, IConsumer
{
winget install -e Microsoft.VisualStudioCode --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders"';
winget install -e Microsoft.Teams;
winget install -e SlackTechnologies.Slack;
winget install -e Mozilla.Firefox.DeveloperEdition;
winget install -e Google.Chrome;
winget install -e Microsoft.DotNet.SDK.6;
winget install -e Microsoft.DotNet.SDK.7;
winget install -e Git.Git;
winget install -e Skillbrains.Lightshot;
winget install -e Microsoft.PowerToys;
@sam9291
sam9291 / ADR Template.md
Last active April 11, 2022 15:29
ADR Template
@sam9291
sam9291 / Baseline.ps1
Last active August 14, 2021 14:21
Quick Fresh Windows 10 PC setup
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install firefox -y
choco install 7zip -y
choco install powertoys -y
choco install microsoft-teams.install -y
choco install git -y
choco install dotnetcore -y
choco install vscode -y
choco install azure-data-studio -y
choco install sql-server-2019 -y
/*
Sample of the output:
[
"GET -> api/monitor/routes",
" -> api/monitor",
"POST -> someRoute/test",
"GET -> api/values",
" -> Error",
"-------- SECURED ROUTES --------",