Skip to content

Instantly share code, notes, and snippets.

View sethfischer's full-sized avatar

Seth Fischer sethfischer

View GitHub Profile
@sethfischer
sethfischer / rules.txt
Created April 2, 2024 07:05 — forked from darkxst/rules.txt
KiCad DRC rules for JLCPCB, 2 & 4-layer PCB
(version 1)
#Kicad 7
# 2-layer, 1oz copper
(rule "Minimum Trace Width (outer layer)"
(constraint track_width (min 5mil))
(layer outer)
(condition "A.Type == 'track'"))
(rule "Minimum Trace Spacing (outer layer)"
#!/bin/sh
git init
cat << EOF | tee .gitignore
# For PCBs designed using KiCad: http://www.kicad-pcb.org/
# Format documentation: http://kicad-pcb.org/help/file-formats/
# Temporary files
*.000
@sethfischer
sethfischer / get-current-git-tag.sh
Created September 18, 2022 00:50 — forked from mjj2000/get-current-git-tag.sh
[GIT] Get tag of current branch(that is HEAD) or fallback to short commit hash(7 digits) by single shell command
git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD
@sethfischer
sethfischer / jq-cheetsheet.md
Created October 27, 2021 07:28 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq