Skip to content

Instantly share code, notes, and snippets.

View lbussell's full-sized avatar

Logan Bussell lbussell

View GitHub Profile
@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}
) {
#!/bin/bash
# Extracts the dotnet source and commtis it to your $VMR repo
# Usage: ./update-vmr.sh dotnet-sdk-source.tar.gz 6.0.108
# make sure you set $VMR to your git repo:
# export VMR=/home/logan/vcs/VMR/dotnet
set -euxo pipefail
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestorePackagesPath>$(MSBuildThisFileDirectory)/restored/</RestorePackagesPath>
<PackageVersionToDownload>6.0.12</PackageVersionToDownload>
</PropertyGroup>
@lbussell
lbussell / create-prereqs.sh
Last active October 13, 2022 17:24
6.0 Servicing Scripts
#!/bin/bash
# Use this in a directory with:
# * x64 prereqs
# * arm64 prereqs
# * any extra nupkgs that you want to add
set -euxo pipefail
mkdir x64
@lbussell
lbussell / rebuild.sh
Created July 13, 2022 17:08
Rebuild a repo in a source-build tarball with an accurate repo-level prebuilt report
#!/bin/bash
set -euxo pipefail
# Example: ./rebuild.sh msbuild
semaphores=(
"CreateBuildOutputProps.complete",
"CreateCombinedRestoreSourceAndVersionProps.complete",
"UpdateNuGetConfig.complete",
"CopyPackage.complete",