Skip to content

Instantly share code, notes, and snippets.

printf '%s\n' 'localhost:8443 {  ✔  15s   11:05:53  
tls internal
root * _build/html
file_server
encode zstd gzip
}
:8080 {
redir https://localhost:8443{uri} 308
}' | caddy run --config /dev/stdin --adapter caddyfile
#!/usr/bin/env python3
"""
Script to check GitHub activity of maintainers and collaborators listed in MAINTAINERS.yml
This script extracts all GitHub usernames from the MAINTAINERS.yml file and checks their
activity in the specified GitHub organization using the GitHub GraphQL API.
Requirements:
- GITHUB_TOKEN environment variable must be set
- requests library (pip install requests)
python seewav.py /Users/kartben/Downloads/20250905-esv2-53p-bg-51p.wav -W 1280 -H 720 -c 1,1,1 --bg-image ~/Downloads/the\ zephyr\ podcast.png --rect 0 300 1280 420 -B 50 --bar-ratio 1 0.5 -O 4 --fade-in 2 --fade-out 2
/dts-v1/;
/* node '/' defined in zephyr/dts/common/skeleton.dtsi:9 */
/ {
#address-cells = < 0x1 >; /* in zephyr/dts/common/skeleton.dtsi:10 */
#size-cells = < 0x1 >; /* in zephyr/dts/common/skeleton.dtsi:11 */
model = "Native Sim Board"; /* in zephyr/boards/native/native_sim/native_sim.dts:14 */
compatible = "zephyr,posix"; /* in zephyr/boards/native/native_sim/native_sim.dts:15 */
/* node '/chosen' defined in zephyr/dts/common/skeleton.dtsi:12 */
python3 -m coverxygen --xml-dir doc/_build/doxygen/xml/ --src-dir include/ --output doc-coverage.info && \
lcov --remove doc-coverage.info \*/deprecated > new.info && \
genhtml --no-function-coverage --no-branch-coverage new.info -o coverage-report
#!/bin/bash
# Start in current directory
root_dir=$(pwd)
# Find all unique directories containing Kconfig* files
find "$root_dir" -type f -name 'Kconfig*' -exec dirname {} \; | sort -u | while read dir; do
# Check if any Kconfig* file in the directory matches the pattern 'config .*_SHELL$'
if grep -E -q '^[[:space:]]*config .*_SHELL$' "$dir"/Kconfig*; then
echo "Zephyr commits between versions:"
git rev-list --count v3.0.0..v3.1.0 | xargs echo "v3.0.0 -> v3.1.0:"
git rev-list --count v3.1.0..v3.2.0 | xargs echo "v3.1.0 -> v3.2.0:"
git rev-list --count v3.2.0..v3.3.0 | xargs echo "v3.2.0 -> v3.3.0:"
git rev-list --count v3.3.0..v3.4.0 | xargs echo "v3.3.0 -> v3.4.0:"
git rev-list --count v3.4.0..v3.5.0 | xargs echo "v3.4.0 -> v3.5.0:"
git rev-list --count v3.5.0..v3.6.0 | xargs echo "v3.5.0 -> v3.6.0:"
git rev-list --count v3.6.0..v3.7.0 | xargs echo "v3.6.0 -> v3.7.0:"
git rev-list --count v3.7.0..v4.0.0 | xargs echo "v3.7.0 -> v4.0.0:"
#!/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