Skip to content

Instantly share code, notes, and snippets.

View sethfischer's full-sized avatar

Seth Fischer sethfischer

View GitHub Profile
@darkxst
darkxst / rules.txt
Last active May 4, 2024 06:30 — forked from denniskupec/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)"
@jdegenstein
jdegenstein / soma_cube_assembly_cq.py
Last active July 19, 2022 17:58
CadQuery assembly of a Soma Cube Puzzle using constraints
import cadquery as cq
from random import randrange as rrr
from random import seed
#Soma set consists of 7 separate pieces
# 4 pieces can be x-y plane only, other 3 require x-y-z
#keep the same pseudo random colors later:
seed(5)#keep colors run-to-run
#(3,4,5,77,777,51221,512796321 are good seeds)
@piratecarrot
piratecarrot / git-setup-kicad.sh
Last active March 1, 2024 22:49
KiCAD git setup
#!/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
# If you, like me, have all of your various source-code-like projects in ~/src/
# this is how to give yourself per-project shell history.
#
# I wish I'd done this years ago.
#
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit,
# then do one other thing (set_src_history.sh, below) like so:
cd () {
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 3, 2024 11:35
Hyperlinks in Terminal Emulators
Around 80 applicants, this playlist found 54 Conceptual Design Review videos (one is hosted on vimeo but there is a video link to it):
https://www.youtube.com/playlist?list=PLfRlBDdqxV8II-dl_kMsYeMaW4dhA2Amo
[![uWaterloo](https://img.youtube.com/vi/xi5wFZ1SiKU/0.jpg)](https://www.youtube.com/watch?v=xi5wFZ1SiKU)
#ROSpiration
@beeman
beeman / remove-all-from-docker.sh
Created November 15, 2016 03:04
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@0xadada
0xadada / github-latest-release.sh
Created July 8, 2015 15:56
Download latest GitHub project release
curl -LOk `curl --silent https://api.github.com/repos/jasmine/jasmine/releases/latest | /usr/bin/awk '/browser_download_url/ { print $2 }' | /usr/bin/sed 's/"//g'`
@chrisdev
chrisdev / gist:b12bb316692cf5f0f004
Created May 19, 2015 15:56
Wagtail Adding Child pages
class TestStaticSitePaths(TestCase):
def setUp(self):
self.root_page = Page.objects.get(id=1)
# For simple tests
self.home_page = self.root_page.add_child(instance=SimplePage(title="Homepage", slug="home"))
self.about_page = self.home_page.add_child(instance=SimplePage(title="About us", slug="about"))
self.contact_page = self.home_page.add_child(instance=SimplePage(title="Contact", slug="contact"))
# For custom tests