Skip to content

Instantly share code, notes, and snippets.

@cpresser
cpresser / compare_fp.sh
Created August 7, 2019 21:01
Re-Format two footprints to compare them - uses kicad-library-utils
#!/usr/bin/env bash
# This script file is used to compare to sexpr files
# with sexpr python file. Spaces and line positioning will be ignored
if [[ $# -ne 2 ]]; then
echo "Usage: $0 kicad_mod1 kicad_mod2"
exit 1
fi
@cpresser
cpresser / check tri2bidir
Created September 13, 2019 12:35
check if PR2151 is ok
#!/usr/bin/python3
import re
rr = re.compile(r"([+-])(X\sP\w.*)([TB])")
filepath = "2151.diff.patch"
itms = {}
add = 0
#!/bin/bash
P=$1
if [ -n "$P" ] && [ "$P" -eq "$P" ] 2>/dev/null; then
echo "adding stuff for PR $P"
else
echo not a number
exit -1
fi