Skip to content

Instantly share code, notes, and snippets.

View gist:8706a7bca34770b443332e1209b9bca1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eagle version="9.6.1">
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
fpoussin /
Last active Oct 14, 2019
JLC PCB bom/pcl generator
# -*- coding: utf-8 -*-
from os.path import expanduser, sep, dirname, abspath
from argparse import ArgumentParser
import xml.etree.ElementTree as ET
import xlsxwriter
import requests
import time
import re
import requests
import os
import argparse
from subprocess import run, PIPE, STDOUT
parser = argparse.ArgumentParser()
parser.add_argument("version", type=str)
parser.add_argument("-p", "--patch", type=str, help="Extra patches to apply")
View klippler-4max.cfg
pin: ar9
hardware_pwm: True
cycle_time: 1.0
kick_start_time: 1.0
[heater_fan extruder_fan]
pin: ar44
fan_speed: 1.0
hardware_pwm: True
import usb.core
import usb.util
import struct
CLINK_USB_PID = 0x1b1c
CLINK_USB_VIP = 0x1c0c
CLINK_GET_PRODUCT = (0x03, 0x9a) + (0,)*(64 - 2)
source /etc/profile
renice +10 $$
JOBS=$(grep -c ^processor /proc/cpuinfo)
function test_skip {
fpoussin / makefile
Created Apr 29, 2016 — forked from nall/makefile
USBTiny Example OSX Driver
View makefile
gcc -g -std=c99 -o usbtiny_osx usbtiny_osx.m -framework Foundation -framework IOKit
rm -rf usbtiny_osx
View board_gpio.tpl
#ifndef _BOARD_GPIO_H_
#define _BOARD_GPIO_H_
{% for d, v in defines %}
#define {{ d }} {{ v }}
{%- endfor %}
{% for p, v in ports %}
/* PORT {{p}} */
#define VAL_GPIO{{p}}_MODER ( \
View Makefile
# tnx to mamalala
# Changelog
# Changed the variables to include the header file directory
# Added global var for the XTENSA tool root
# Output directors to store intermediate compiled files
# relative to the project directory
BUILD_BASE = build
FW_BASE = firmware
fpoussin /
Last active May 23, 2018
Build script for the Xtensa toolchain. (Mingw/linux)
# Author: Fabien Poussin
# Last edit: 20/11/2014
# You will need the following mingw32/64 or equivalent linux packages to build it:
# msys gcc msys-coreutils msys-wget msys-autoconf msys-automake msys-mktemp
# Use mingw-get to install these.
# run this script from msys's or any unix console.