Skip to content

Instantly share code, notes, and snippets.

View r2r-dev's full-sized avatar
👁️
spiral out

r2r-dev

👁️
spiral out
View GitHub Profile
@r2r-dev
r2r-dev / yocto2oci.sh
Created February 20, 2024 12:03
yocto2oci
#!/usr/bin/env bash
# USAGE: ./yocto2oci.sh <sdk>
# where sdk is a yocto-generated installer
# example sdk: https://downloads.yoctoproject.org/releases/yocto/yocto-4.0.16/toolchain/x86_64/poky-glibc-x86_64-core-image-sato-ppc7400-qemuppc-toolchain-ext-4.0.16.sh
set -e
ALGORITHM="sha256"
BUILD_DIR="build"
BLOBS_DIR="$BUILD_DIR/blobs/$ALGORITHM"
@r2r-dev
r2r-dev / process_build_events.jq
Last active March 1, 2024 10:59
process_build_events.jq
#!/usr/bin/env -S jq -n -f
# curl --netrc 'https://bes.service/rpc/BuildBuddyService/SearchInvocation' -d '{"query": {"commit_sha": "000d8878ada519b9bc8ae453736c1931"}}' -H 'Content-Type: application/json' -H 'x-buildbuddy-api-key: 00000000000'
# curl --netrc 'https://bes.service/rpc/BuildBuddyService/GetInvocation' -d '{"lookup": {"invocation_id": "00000000-0000-0000-0000-00000000"}}' -H 'Content-Type: application/json' | ./process_build_events.jq
[inputs | .invocation[0].event[].buildEvent
| select(.id != null)
| if .id.targetCompleted != null then
if .aborted != null then {
"type": "aborted",
"label": .id.targetCompleted.label
@r2r-dev
r2r-dev / .bazelrc
Last active March 6, 2024 16:01
java_starlark_repl
build --noenable_bzlmod --java_runtime_version=remotejdk_11