Skip to content

Instantly share code, notes, and snippets.

View MajorP93's full-sized avatar

MajorP93

  • Hamburg, Germany
View GitHub Profile
#!/usr/bin/env bash
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\
function register_clang_version {
local version=$1
local priority=$2
update-alternatives \
--verbose \
@MajorP93
MajorP93 / xen-orchestra-openmetrics-dashboard.json
Created January 8, 2026 12:41
XCP-ng / Xen Orchestra OpenMetrics Grafana dashboard based on the xen-exporter dashboard made by MikeDombo
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@MajorP93
MajorP93 / git-push-merge-review
Created March 22, 2023 20:05 — forked from mikeNG/git-push-merge-review
Upload merge commit to gerrit without pushing all the commits
#!/bin/bash
# SPDX-FileCopyrightText: 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
usage() {
echo "Usage ${0} <remote> <merge_sha> <branch>"
}
# Verify argument count
@MajorP93
MajorP93 / README.md
Created February 2, 2023 13:38 — forked from SebaUbuntu/README.md
Generate framework compatibility matrix from fqnames

Generate framework compatibility matrix from fqnames

  • Download these 2 files
  • Compile AOSP without fcm from stock and wait for check_vintf to error out
  • Delete Python prefix from all lines (e.g. checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554])
  • Paste the result in fqnames.txt
  • Launch the script