Skip to content

Instantly share code, notes, and snippets.

View caugner's full-sized avatar

Claas Augner caugner

View GitHub Profile
@caugner
caugner / review-cssinfo-pr-912.md
Created September 16, 2026 16:36
Review of CSS formal-definition changes in mdn/rari PR #912

CSS formal-definition review, mdn/rari PR #912

Review completed for all artifact groups, without truncation:

  • en-US: D001-D425, I001-I152
  • es: D001-D161, I001-I021
  • fr: D001-D438, I001-I052
  • ja: D001-D421, I001-I048
  • ko: D001-D117, I001
  • pt-BR: D001-D077, I001-I003
name: Report build issues
on:
workflow_call:
inputs:
build-issues-artifact-id:
description: The ID of the artifact containing the issues.json file
required: true
type: string
content-path:

Added

  • css.properties.align-content.first
  • css.properties.align-content.last
  • css.properties.align-content.baseline
  • css.properties.align-content.space-between
  • css.properties.align-content.space-around
  • css.properties.align-content.space-evenly
  • css.properties.align-content.stretch
  • css.properties.align-content.unsafe
@caugner
caugner / git-bisect-search.sh
Created September 17, 2025 08:39
git-bisect-search
git-bisect-search() {
if [ -z "$1" ]; then
echo "Usage: $0 <pattern>"
return 1
fi
local pattern="$1"
git bisect start
git bisect bad HEAD
@caugner
caugner / deno.sh
Created May 12, 2025 09:17
Test all deno versions
#!/usr/bin/env sh
if [[ -z "$1" ]]; then
echo "Usage: $0 <test> [<expected>]"
exit 1
fi
test=$1;
expected=$2;
@caugner
caugner / gh-rerun-failed-runs.sh
Created February 6, 2024 12:59
Rerun failed workflow runs for current commit
#!/usr/bin/env sh
gh run list -c `git rev-parse HEAD` --status=failure --json 'databaseId' | jq -r '.[] | .databaseId' | xargs -n1 gh run rerun --failed
@caugner
caugner / gh-rerun-failed-workflow.sh
Last active February 6, 2024 12:58
Rerun failed workflow
#!/usr/bin/env sh
gh run list --workflow 'auto-merge' --status=failure --json 'databaseId' | jq -r '.[] | .databaseId' | xargs -n1 gh run rerun --failed
@caugner
caugner / github-prs-with-size.js
Created October 31, 2023 17:00
Last 1000 mdn/content PRs with size metrics as CSV
import { writeFileSync } from "node:fs";
import { octokit } from "./lib.js";
async function pullRequests(login, repo, limit, { columns }) {
const items = [];
let after = null;
let hasNextPage = false;
do {
@caugner
caugner / record_variable_types.ts
Created October 18, 2023 16:13
Record types of variables (e.g. for untyped function parameters)
function recordVariableTypes(name: string, variables: Record<string, any>) {
const types = Object.entries(variables).reduce(
(obj, [key, value]) => ({ ...obj, [key]: typeOf(value) }),
{}
);
recordTypes(name, types);
}
function recordTypes(name: string, types: Record<string, string>) {
const path = `types_${name}.json`;
@caugner
caugner / find-unlisted-issues.php
Last active September 11, 2020 18:35
Psalm: Find unlisted issues
<?php
// Usage:
// 1. Clone: https://github.com/vimeo/psalm.git
// 2. Run this script inside the repository.
$dir = __DIR__ . '/docs/running_psalm/';
$issues = glob($dir . 'issues/*.md');
$docs = file_get_contents($dir . 'error_levels.md');
foreach ($issues as $issue) {