Skip to content

Instantly share code, notes, and snippets.

@hannesweisbach
hannesweisbach / front.ngc
Created September 25, 2020 10:24
pcb2gcode bug
( pcb2gcode 2.1.0 )
( Software-independent Gcode )
G94 ( Millimeters per minute feed rate. )
G21 ( Units == Millimeters. )
G90 ( Absolute coordinates. )
G00 S30000 ( RPM spindle speed. )
G64 P0.01016 ( set maximum deviation from commanded toolpath )
G01 F80.00000 ( Feedrate. )
@hannesweisbach
hannesweisbach / default.nix
Last active September 18, 2020 08:43
KiCad macOS install
with import <nixpkgs> {
#with import /Users/hannesweisbach/Software/nixpkgs {
config = {
cores = 6;
packageOverrides = pkgs: {
# see kicad-wxwidgets.nix in the gist below.
wxGTK30 = pkgs.callPackage ~/Software/nix/kicad-wxwidgets.nix {
inherit (pkgs.darwin.stubs) setfile;
inherit (pkgs.darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit WebKit AVFoundation AVKit;
};
[Unit]
Description=LTTng 2.x central tracing registry session daemon
[Service]
Type=forking
ExecStart=/usr/bin/lttng-sessiond -d
[Install]
WantedBy=multi-user.target
@hannesweisbach
hannesweisbach / gpio-pinnames.dts
Created July 12, 2019 18:01
Device Tree Overlay to name GPIO lines on a Raspberry Pi 2 Model B. Needed for Kernels < 5.2
// Give GPIO pin names in pre-5.2 kernels
/dts-v1/;
/plugin/;
/ {
compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
fragment@0 {
target = <&gpio>;
__overlay__ {
/*
@hannesweisbach
hannesweisbach / fi.rb
Created July 23, 2016 12:26
Wrapper script for Fail*/L4Re
#!/usr/bin/env ruby
require 'fileutils'
require 'open3'
require 'optparse'
require 'pathname'
module ResComp
class Config
#!/usr/bin/env python
import sys
import datetime
import binascii
frankierart={
0x01:'Stampit 2003',
0x02:'0x02???',
0x03:'Frankit',
0x05:'Filiale',