Skip to content

Instantly share code, notes, and snippets.

View jviotti's full-sized avatar

Juan Cruz Viotti jviotti

View GitHub Profile
@jviotti
jviotti / clang-tidy-parse.py
Created May 23, 2025 23:02
Parse Clang Tidy output
import re
import sys
from collections import defaultdict
def split_and_group_errors(input_path):
# Regex to detect the start of an error block and capture the diagnostic name
start_pattern = re.compile(
r'^(?P<file>.+?):(?P<line>\d+):(?P<col>\d+): error: .* \[(?P<diag>[^\]]+)\]'
)
groups = defaultdict(list)
@jviotti
jviotti / instance.json
Last active March 14, 2025 20:10
KrakenD Blaze Failure
{
"data": true,
"strategy": true,
"@extra_comment": "here"
}
@jviotti
jviotti / README.md
Last active October 3, 2024 15:57
Annotations

Draft 7

  • if (boolean value)
    • We can do without annotations, with a monolith instruction for if/then/else
    • Affects then
    • Affects else

2019-09

@jviotti
jviotti / README.md
Created June 6, 2024 15:50
KrakenD Schemas Bundling
@jviotti
jviotti / README.md
Last active October 30, 2023 14:57
Backtrace Crashpad Homebrew Formula

Try it out

# In case you already have it, etc
brew reinstall --formula ./backtrace_crashpad.rb --verbose --force

Sample app

Create a CMakeLists.txt:

@jviotti
jviotti / README.md
Last active May 2, 2023 23:38
JSON BinPack Example

Gists don't let me upload binary files directly. To get the output.bin binary file, run:

echo "0x03 0x01 0x01 0x66 0x6f 0x6f 0xfa 0x01" | xxd -r > output.bin