Skip to content

Instantly share code, notes, and snippets.

View lbussell's full-sized avatar

Logan Bussell lbussell

View GitHub Profile
@lbussell
lbussell / chisel-wrapper-dpkg-status-diff.patch
Created February 25, 2025 22:36
Testing chisel-wrapper update for merging dpkg status
diff --git old new
index a3d25da1c..19d431479 100644
--- old
+++ new
@@ -1,353 +1,249 @@
-Package: base-files
-Version: 13ubuntu10.1
-Architecture: amd64
-Essential: yes
-Maintainer: Ubuntu Developers <[email protected]>
@lbussell
lbussell / 1-chisel-install-additional-slices.Dockerfile
Last active January 30, 2025 17:37
Install additional slices on Ubuntu Chisel base image
ARG CHISEL_VERSION=1.1.0
ARG DOTNET_DOCKER_COMMIT=cb2823a1d974bd0d1d0c513e8f7ace29b2b0d22c
ARG TARGETARCH
# chisel uses chisel to create a new base image
FROM amd64/buildpack-deps:noble-curl AS chisel
ARG CHISEL_VERSION
RUN apt-get update && apt-get install -y file
RUN chisel_url=https://github.com/canonical/chisel/releases/download/v${CHISEL_VERSION}/chisel_v${CHISEL_VERSION}_linux_amd64.tar.gz \
@lbussell
lbussell / _description.md
Last active January 23, 2025 22:24
.NET Tags table formatting

Here are three options for Windows tags table formatting. There are no changes to Linux tags in any of the options. There are some Linux tags shown in Option 1 just so you can compare what they look like to the Windows tags.

Option 1:

  • Windows tags grouped by OS version and architecture (keep in mind we only have one Windows architecture at the moment).
  • Windows .NET preview tags are inline with each Windows version's tags table.

Option 2:

  • Windows tags grouped by OS version and architecture.
  • Windows .NET preview tags are in a separate table.
FROM scratch AS program
COPY <<EOF /Program.cs
using System;
using static System.Console;
// foreach (TimeZoneInfo z in TimeZoneInfo.GetSystemTimeZones())
// {
// WriteLine(z.Id);
// }
TimeZoneInfo z1 = TimeZoneInfo.FindSystemTimeZoneById("Europe/Kyiv");
WriteLine(z1.Id);
@lbussell
lbussell / Dockerfile
Last active April 23, 2024 18:31
Noble Arm32 cert issue repro
# Installer image
FROM arm32v7/buildpack-deps:jammy-curl AS installer
# Install .NET SDK
RUN curl -fSL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.204/dotnet-sdk-8.0.204-linux-arm.tar.gz \
&& mkdir -p /usr/share/dotnet \
&& tar -oxzf dotnet.tar.gz -C /usr/share/dotnet \
&& rm dotnet.tar.gz
#!/usr/bin/env pwsh
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]$buildId
)
$configPath = "$PSScriptRoot/config.json";
$setVersionsScript = "$PSScriptRoot/Set-DotnetVersions.ps1"
@lbussell
lbussell / evangelion.json
Created March 29, 2023 16:57
NGE Colorscheme for windows terminal
{
"background": "#000000",
"black": "#310105",
"blue": "#56A1D9",
"brightBlack": "#B8B8B8",
"brightBlue": "#41D5E1",
"brightCyan": "#41D5E1",
"brightGreen": "#6FFFB5",
"brightPurple": "#56288D",
"brightRed": "#E74856",
@lbussell
lbussell / Dockerfile
Last active March 24, 2023 18:15
aspnet composite dockerfile
# Installer image
FROM amd64/buildpack-deps:bookworm-curl AS installer
# Retrieve .NET Runtime
RUN aspnetcore_version=8.0.0-preview.3.23170.14 \
&& curl -fSL --output dotnet.tar.gz https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-composite-$aspnetcore_version-linux-x64.tar.gz \
&& dotnet_sha512='06a24a0992645757e471d6bd6244328e9f0a352ad198697c97136c997f5bfcc6b947f2e896dc3bd69590781a1befc0ec5531859b4e25456b97a24320bcacd42a' \
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
&& mkdir -p /dotnet \
&& tar -oxzf dotnet.tar.gz -C /dotnet \
@lbussell
lbussell / mirror-and-tag.sh
Created December 13, 2022 18:51
Mirror and tag .NET source build releases
#!/bin/bash
set -euxo pipefail
RELEASE_CHANNEL="7.0"
RUNTIME_VERSION="7.0.X"
SDK_VERSION="7.0.1XX"
vmr_path="vmr"
dnceng_url="valid git url"
destination_url="valid git url"
@lbussell
lbussell / get-release-info.sh
Created December 12, 2022 23:17
Get .NET source-build release info
#!/bin/bash
set -euxo pipefail
query='query {
repository(name: \"source-build\", owner: \"dotnet\") {
discussions(
categoryId: \"DIC_kwDOA-dPNs4CBKbO\",
first: 10,
orderBy: {field: UPDATED_AT, direction: DESC}
) {