Skip to content

Instantly share code, notes, and snippets.

View Salamandar's full-sized avatar

Salamandar Salamandar

View GitHub Profile
@Salamandar
Salamandar / svg2dxf.sh
Created February 25, 2020 07:44
svg to dxf conversion
#!/bin/bash
# The assert function for Bash
function assert {
local rc
local message="$1"
shift
"$@" 2>&1 > /dev/null
rc=$?
[ $rc -eq 0 ] && return 0
set $(caller)
@Salamandar
Salamandar / kicad_generate_gerber.py
Last active October 18, 2020 20:30
Python script that generates Gerber, Drill map, Position file, and zips everything.
#!/usr/bin/env python3
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# Salamandar <felix@piedallu.me> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return. Félix Piédallu
# ----------------------------------------------------------------------------
import sys