Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import os
import yaml
import sys
import argparse
from pathlib import Path
import statistics
import re
find . -type f -exec grep -l "zephyr:board::" {} \; \
| xargs grep -L "zephyr:board-supported-hw" \
| xargs grep -l "Supported Features" \
| while IFS= read -r file; do
grep -n "Supported Features" "$file" | cut -d: -f1 | while IFS= read -r line; do
echo "${file}:${line}"
done
done | xargs code -g
@kartben
kartben / test.md
Last active February 21, 2025 08:36

Board: esp32s3_devkitc/esp32s3/procpu

Type Status Location Compatible
adc disabled SoC espressif,esp32-adc
base okay SoC zephyr,memory-region
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
# find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
find_package(Zephyr COMPONENTS FindZephyr-sdk zephyr_default yaml pre_dt dts REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
#!/bin/bash
# Configuration
#GOOD_COMMIT="v4.0.0"
GOOD_COMMIT="v4.0.0"
# Tests to exclude (space-separated list of test names)
# Example: EXCLUDED_TESTS="drivers.adc kernel.common"
EXCLUDED_TESTS=""
@kartben
kartben / gist:7d7001cbf75e0e7ffda8e73120b13a86
Last active January 29, 2025 07:52
PRs with failed compliance check
gh pr list --state open --json number,title,url,statusCheckRollup --limit 50 -S "status:failure" \
| jq -r '
.[] |
. as $pr |
[ $pr.statusCheckRollup[]? |
select(
.__typename == "CheckRun" and
(.name | contains("Run compliance checks")) and
.conclusion == "FAILURE"
)
#!/usr/bin/env python3
import subprocess
import csv
from collections import defaultdict
from datetime import datetime
def get_contributor_commits():
try:
# Get all commits with commit date and author, sorted by oldest first
/dts-v1/;
/* node defined in ../../dts/common/skeleton.dtsi:9 */
/ {
#address-cells = < 0x1 >; /* in ../../dts/common/skeleton.dtsi:10 */
#size-cells = < 0x1 >; /* in ../../dts/common/skeleton.dtsi:11 */
model = "reel board"; /* in ../../dts/common/skeleton.dtsi:14 */
compatible = "phytec,reel_board"; /* in ../../dts/common/skeleton.dtsi:15 */
@kartben
kartben / ble_tiny_click.webp
Last active July 29, 2024 09:30
ble_tiny_click
bogus ReSructuredText bullet/ordered lists
^[^-][A-Za-z].*\n\*.*\n\*.*\n
^[^-][A-Za-z].*\n-.*\n\*.*\n
^[^-][A-Za-z].*\n\#.*\n\*.*\n