Skip to content

Instantly share code, notes, and snippets.

@VincentGijsen
VincentGijsen / printer.cfg
Created October 28, 2018 15:06
klipper config for FLsun kossel with heatbed, magnetic arms (12mm mags)
[stepper_a]
step_pin: ar54
dir_pin: !ar55
enable_pin: !ar38
step_distance: .01
endstop_pin: ^ar2
homing_speed: 60
#position_endstop: 283.656381
@VincentGijsen
VincentGijsen / sun8i-h3-orangepi-one.dts
Created February 19, 2018 18:40
Changes to dts overlay orange-pi-one-for i2c (line 967) for volumio
/dts-v1/;
/ {
interrupt-parent = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x1>;
model = "Xunlong Orange Pi One";
compatible = "xunlong,orangepi-one", "allwinner,sun8i-h3";
sound {
@VincentGijsen
VincentGijsen / StaticFileServlet.scala
Last active January 5, 2017 12:21 — forked from laurilehmijoki/StaticFileServlet.scala
Static file servlet with Scalatra
package coolcode
import java.io.File
import java.util.Properties
import org.scalatra.ScalatraServlet
class StaticFileServlet extends ScalatraServlet {
get("/*") {
val resourcePath = "/WEB-INF" + getResourcePath