Skip to content

Instantly share code, notes, and snippets.

View maxmoehl's full-sized avatar

Maximilian Moehl maxmoehl

View GitHub Profile
@maxmoehl
maxmoehl / README.md
Created May 2, 2025 05:52
Inlining a BOSH Release Submodule

Inlining a BOSH Release Submodule

You need the following info which can be found in the .gitmodules file of the release:

  • Path to the submodule.
  • Tracking branch (git config --file .gitmodules submodule."${Path}".branch).
  • URL of the repository (git config --file .gitmodules submodule."${Path}".url).

First, remove the submodule:

@maxmoehl
maxmoehl / github-shortcuts.css
Last active October 10, 2024 09:56
Display all available shortcuts directly in the GitHub UI.
/* ==UserStyle==
@name GitHub Shortcuts
@description Display all available shortcuts directly in the UI for beginners.
@match https://github.com/*
@updateURL https://gist.githubusercontent.com/maxmoehl/3a452e1f4d60fdf7399c8ad199a0000f/raw/github-shortcuts.css
@version 0.1.1
==/UserStyle== */
/* Font */
#code-tab span:first-of-type::after,
@maxmoehl
maxmoehl / flake.nix
Last active July 25, 2024 02:40
A minimal base for building multi-arch, multi-os nix flakes
{
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-22.11;
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
@maxmoehl
maxmoehl / gitCommitLabel.yml
Last active April 25, 2025 20:59
Add the git commit hash to all resources. Due to a bug in kustomize the script will have to be in your path for this to work. Once the bug is fixed it should be possible to have the script relative to the kustomization file.
apiVersion: internal
kind: GitCommitLabel
metadata:
name: whatever
annotations:
config.kubernetes.io/function: |
exec:
path: git_commit_label.sh