Skip to content

Instantly share code, notes, and snippets.

View lbussell's full-sized avatar

Logan Bussell lbussell

View GitHub Profile
@timheuer
timheuer / copilot-instructions.md
Created October 8, 2025 22:51
File-based Apps copilot-instructions

File-Based .NET apps

This workspace contains file-based .NET apps. These are standalone .cs files that can be run directly without creating a project file or traditional project structure.

Key Features

  • No project file required - Run C# code directly from a .cs file
  • Built-in CLI integration - Uses the standard dotnet CLI, no additional tools needed
  • Scales to full projects - Can be converted to traditional project-based apps when needed
  • Same C# language - Full C# language support, same compiler and runtime
@cajuncoding
cajuncoding / SystemTextJsonNodeMergeExtensions.cs
Last active March 8, 2026 00:23
Simple Merge process for JsonNode using System.Text.Json
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Text.Json.Nodes;
namespace CajunCoding
{
public static class SystemTextJsonMergeExtensions
{
@mthalman
mthalman / Dockerfile.md
Created April 12, 2024 00:54
Chiseled PowerShell
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS installer

RUN mkdir /pwsh-symlink \
    && ln -s /usr/share/powershell/pwsh /pwsh-symlink/pwsh

FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled

COPY --from=installer /usr/share/powershell /usr/share/powershell
COPY --from=installer ["/pwsh-symlink", "/usr/bin"]
@SonoSooS
SonoSooS / DMGCPU.MD
Last active June 21, 2026 12:45
Game Boy CPU internals

This document is intended to document certain inner workings of the CPU.

There have been efforts by emu-russia and gekkio to have the CPU decapped, and so we have the decode ROM accessible to us. This means, that we know exactly what each opcode does (besides some nuanced behavior related to HALT, STOP, and some state management related to interrupts and power saving which are hard to untangle).

Table of contents

@mort3za
mort3za / git-auto-sign-commits.sh
Last active July 27, 2026 13:18
Auto sign your git commits
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands)
gpg --gen-key
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null`
# check current keys:
gpg --list-secret-keys --keyid-format LONG
# See your gpg public key:
gpg --armor --export YOUR_KEY_ID
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333)
@jboner
jboner / latency.txt
Last active August 18, 2026 13:45
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD