Consuming NuGet packages from my GitHub

This is a short guide on how to consume packages from my GitHub packages feed. The official docs are here. Notes: How to find your NuGet.Config My feed URL: https://nuget.pkg.github.com/LordMike/index.json You must authenticate using a GitHub access token with read:packages permission — create one here. The config file must exist — use dotnet new nugetconfig to create it. Method A: Add source user-wide (CLI) dotnet new nugetconfig dotnet nuget add source \ -n gh-lordmike \ https://nuget.pkg.github.com/LordMike/index.json \ -u MyGithubUser \ -p MyGithubToken This adds a user-wide source, allowing all projects to consume from it. On Windows, the password is encrypted on disk. ...

March 28, 2021 · 1 min · Michael Bisbjerg

Mass-administration of GitHub repositories

This is a collection of notes on how I manage multiple GitHub repositories. All repositories under my account are maintained using this system. Features I need the following: Standardized repository configuration — Easily change topics, descriptions, settings across all repos. Unified GitHub Actions workflows — Shared build, test, release pipelines (e.g., NuGet, Docker Hub). Synchronized repository content — Shared files like .gitignore, Directory.Build.props, and CI/CD workflows. In short, I want to template my repositories—but also update those templates over time. ...

March 27, 2021 · 1 min · Michael Bisbjerg

Renaming an index in Elastic (slight hacks)

Sometimes you need to rename an Elasticsearch index—maybe to reuse the name for an alias. Officially, this isn’t supported. But with some manual edits and caution, it can be done. ⚠️ Warning: This is dangerous and unsupported. Back up your data first. Recommended Alternatives Reindex API Snapshot and restore Index split If these don’t work for your case, read on. The Hacky Method Stop the Elasticsearch node. Find the metadata files: ...

March 5, 2021 · 1 min · Michael Bisbjerg

Move WSL to different drive

Windows Subsystem for Linux is awesome, but storing its files on the system drive can be limiting. Here’s how to move WSL distributions to another disk. List Containers wsl --list Sample output: Windows Subsystem for Linux Distributions: ubuntu (Default) docker-desktop-data docker-desktop Move a Container Shut down WSL to avoid issues: wsl --shutdown Export the container: wsl --export ubuntu N:\ubuntu.tar Unregister the container: wsl --unregister ubuntu Re-import to new location: wsl --import ubuntu N:\WSL\ubuntu N:\ubuntu.tar --version 2 (Optional) Delete the exported .tar file after verifying the setup. This approach preserves the distro while allowing full control over its storage location. ...

February 17, 2021 · 1 min · Michael Bisbjerg

Space Engineers 01.172 - API Documentation

For reference, here is a SandCastle-produced help file for Sandbox.Common from Space Engineers 01.172. 👉 Download Documentation.chm Interesting Starting Points Sandbox.ModAPI.IMyGridProgram — All in-game scripts inherit from this interface. This documentation is especially useful when writing programmable block scripts for automation and custom logic in-game.

August 5, 2017 · 1 min · Michael Bisbjerg