Skip to content

Instantly share code, notes, and snippets.

View bricelam's full-sized avatar

Brice Lambson bricelam

View GitHub Profile
@bricelam
bricelam / settings.json
Last active September 4, 2026 21:07
My Claude Code settings
{
"awaySummaryEnabled": false,
"outputStyle": "Concise",
"permissions": {
"allow": [
"Bash(gh issue list *)",
"Bash(gh issue view *)",
"Bash(gh pr view *)",
"Bash(git config --get *)",
"Bash(git log *)",
@bricelam
bricelam / configuration.winget
Last active September 29, 2026 15:49
My WinGet Configuration file
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
winget:
processor:
identifier: dscv3
resources:
###########
# Windows #
###########
@bricelam
bricelam / Program.cs
Created August 8, 2024 18:49
Retry with Fibonacci backoff
var retry = 1;
var nextRetry = 1;
while (true)
{
try
{
DoSomething();
break;
}
catch (TransientException) when (retry <= 8)
@bricelam
bricelam / Signing.md
Last active November 22, 2024 00:50
Signing VSIX Packages

Since I always forget, here's the best way I've found to do it.

dotnet tool update -g OpenVsixSignTool
SET DOTNET_ROLL_FORWARD=LatestMajor
OpenVsixSignTool sign --sha1 08efc8cb4f0303dd4968a46f176cba010fae639c --timestamp http://time.certum.pl VisualStudio.Data.Sqlite.vsix
@bricelam
bricelam / Sandbox.wsb
Last active March 23, 2023 01:53
A Windows Sandbox configuration for your Downloads folder
<Configuration>
<vGPU>Enable</vGPU>
<Networking>Disable</Networking>
<MappedFolders>
<MappedFolder>
<HostFolder>%USERPROFILE%\Downloads</HostFolder>
<SandboxFolder>C:\Users\WDAGUtilityAccount\Downloads</SandboxFolder>
</MappedFolder>
</MappedFolders>
<LogonCommand>
@bricelam
bricelam / DisqusToGiscus.cs
Created February 9, 2023 21:45
Copies comments from a Disqus export to GitHub Discussions for giscus
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Xml.Linq;
using Octokit.GraphQL;
using Octokit.GraphQL.Model;
var disqus = XElement.Load("disqus-export.xml");
var ns = disqus.GetDefaultNamespace();
var dsq = disqus.GetNamespaceOfPrefix("dsq")!;
var threads = new Dictionary<long, Thread>();
@bricelam
bricelam / Notepad3.ini
Last active November 23, 2021 01:23
Brice's Notepad3 settings
[Settings]
ShowToolbar=false
WordWrap=false
TabsAsSpaces=true
AutoCloseTags=true
HighlightCurrentLine=2
MarkLongLines=true
LongLinesLimit=140
PathNameFormat=0
[Settings2]
@bricelam
bricelam / profiles.json
Created January 6, 2020 21:34
Windows Terminal settings
{
"defaultProfile": "{cd6f40e9-9cd5-405e-8113-b66b820b2b13}",
"profiles": [
{
"guid": "{cd6f40e9-9cd5-405e-8113-b66b820b2b13}",
"name": "Developer Command Prompt",
"commandline": "%comspec% /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\Common7\\Tools\\VsDevCmd.bat\"",
"startingDirectory": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\",
"icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
"useAcrylic": true,
@bricelam
bricelam / ConsoleApp.csproj
Last active March 3, 2025 10:15
Using NTS with Dapper
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Dapper" Version="2.0.4" />
<PackageReference Include="NetTopologySuite.IO.SqlServerBytes" Version="2.0.0" />
@bricelam
bricelam / code-settings.json
Last active January 7, 2020 04:25
My VS Code Settings
{
"workbench.colorTheme": "Default Light+",
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"editor.codeLens": false,
"editor.rulers": [
120
],