Skip to content

Instantly share code, notes, and snippets.

View kzu's full-sized avatar
💚
Attempt #3 at OSS sustainability, with OSMF now🫰

Daniel Cazzulino kzu

💚
Attempt #3 at OSS sustainability, with OSMF now🫰
View GitHub Profile
@kzu
kzu / Api.csproj
Created June 24, 2026 17:37
File-based .NET Aspire AppHost (generic pattern) - extracted core with boilerplate and AGENTS. MCP create probe 403 (scope); gh used for delivery after probe call.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / Api.csproj
Created June 24, 2026 17:28
File-based .NET Aspire AppHost (generic pattern) - extracted core with boilerplate and AGENTS instructions. No project specifics.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / Api.csproj
Created June 24, 2026 17:16
File-based .NET Aspire AppHost (generic pattern) - extracted core with boilerplate and AGENTS instructions. No project specifics.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / probe.txt
Created June 24, 2026 17:16
probe
gh probe
@kzu
kzu / Api.csproj
Last active June 24, 2026 17:11
File-based .NET Aspire AppHost (generic pattern)
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / Api.csproj
Created June 24, 2026 17:02
File-based .NET Aspire AppHost pattern (generic). Flat files; api/ web/ layout represented by file names (Api.csproj etc) and README. MCP create 403; produced after required MCP calls via GitHub API.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / README.md
Created June 24, 2026 17:01
File-based .NET Aspire AppHost pattern (generic). MCP create attempted (403), created via API then updated for subdir files.

File-based Aspire AppHost (generic pattern)

Reusable extraction of the core orchestration technique using a C# source file as the Aspire DistributedApplication host (via SmallSharp), stable dev tunnels, port pinning, dependency ordering with WaitFor, a JavaScript frontend via AddJavaScriptApp, and a .slnx for one-click F5 in Visual Studio and �spire run.

No project-specific names, IDs, ports, or dependencies are included.

Quick start

  1. Copy files preserving the api/ and web/ layout.
  2. Add the Aspire wrapper to your .slnx.
@kzu
kzu / Api.csproj
Created June 24, 2026 16:54
File-based .NET Aspire AppHost pattern (generic, reusable): apphost.cs + SmallSharp + pinned ports + dev tunnels + AddJavaScriptApp + .slnx for F5. Includes API and web boilerplate + generalized AGENTS instructions.
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" />
<PackageReference Include="Microsoft.Extensions.Http.Resilience" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
@kzu
kzu / SpaceX.md
Created June 8, 2026 13:37
SpaceX Engineering Employees

SpaceX Engineering Employees

Years of Tenure Typical Accumulated Shares/Options (Vested Portion) Est. Current Paper Value (at ~$400/share) Notes / IPO Upside Potential
0–2 years 5,000–15,000 (partial vesting, ~20–40%) $100K – $500K+ Newer grants at higher strikes. Modest vested value; strong future refreshes. IPO adds meaningful but not transformative gains yet.
3–5 years 10,000–30,000+ (50–80%+ vested, multiple grants) $500K – $2M+ Balanced low + recent strikes. Common for solid mid-level performers. IPO often pushes to $1M–$5M+ range.
5–10 years 20,000–50,000+ (high vesting, promotions) $2M – $10M+ Significant low-
[SpaceX Engineering Employees](https://grok.com/share/c2hhcmQtNA_9e80163e-3619-4449-a060-77128e48bdcc)
| Years of Tenure | Typical Accumulated Shares/Options (Vested Portion) | Est. Current Paper Value (at \~$400/share) | Notes / IPO Upside Potential |
|---------------------|-----------------------------------------------------|-------------------------------------------|------------------------------|
| 0–2 years | 5,000–15,000 (partial vesting, \~20–40%) | $100K – $500K+ | Newer grants at higher strikes. Modest vested value; strong future refreshes. IPO adds meaningful but not transformative gains yet. |
| 3–5 years | 10,000–30,000+ (50–80%+ vested, multiple grants) | $500K – $2M+ | Balanced low + recent strikes. Common for solid mid-level performers. IPO often pushes to $1M–$5M+ range. |
| 5–10 years | 20,000–50,000+ (high vesting, promotions) | $2M – $10M+ | Significant low-