Skip to content

Instantly share code, notes, and snippets.

Avatar

Sönke J. Peters speters

View GitHub Profile
View PrusaSlicer_CR6SE_end.gcode
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positioning
; G1 X0 Y400 ;Present print *CR-6 Max version*
G1 X0 Y235 ;Present print *Regular Cr-6 SE version
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
@speters
speters / freecad.sh
Last active Jul 14, 2020
/usr/bin/freecad wrapper to always start latest version
View freecad.sh
#!/bin/sh
FCLATEST=$(ls -t1 $HOME/.local/bin/FreeCAD*AppImage | head -n1)
if [ -x ${FCLATEST} ] ; then
${FCLATEST}
else
exit 1
fi
@speters
speters / androidmail_getaddresses.sql
Last active Jan 16, 2020
get email addresses from Android E-Mail app
View androidmail_getaddresses.sql
/* with kind regards to http://www.samuelbosch.com/2018/02/split-into-rows-sqlite.html */
WITH RECURSIVE split(predictorset_id, predictor_name, rest) AS (
SELECT _id, '', fromList || char(1) || toList || char(1) FROM Message WHERE _id
UNION ALL
SELECT predictorset_id,
substr(rest, 0, instr(rest, char(1))),
substr(rest, instr(rest, char(1))+1)
FROM split
WHERE rest <> '')
SELECT DISTINCT
View nvpedia_cov.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@speters
speters / embed-images.user.js
Created Jan 31, 2019
Violentmonkey/Greasemonkey userscript to embed images on selected sites
View embed-images.user.js
// ==UserScript==
// @name Embed images on selected sites
// @namespace 7d47d98c-acd8-434f-b058-72f9ce028241
// @version 0.1
// @description Turn image URLs into embeded images.
// @author Print
// @match *://forum.zerspanungsbude.net/*
// @grant none
// ==/UserScript==
View Logitech Gamepad F310.cfg
input_device = "Logitech Gamepad F310"
input_driver = "udev"
input_vendor_id = 1133
input_product_id = 49693
input_a_btn = "1"
input_reset_btn = "1"
input_b_btn = "0"
input_x_btn = "3"
input_y_btn = "2"
input_menu_toggle_btn = "2"
View NavTex_Receiver_by_kutt.c
/*
* Einfacher Navtex-Empfaenger
*
* von Martin Kuettner <berry@fmode.de> 03/2016
*
*
* Portierung des 80C51 Assembler Programms aus "A NAVTEX Receiver for the DXer":
*
* Klaus Betke, Am Entengrund 7, D-26160 Bad Zwischenahn, Email: betke@itap.de
* 11-AUG-00 / 01-OCT-00
View sipdial.ino
/* ====================================================================
*
* Copyright (c) 2018 Juerge Liegner All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
View .travis-ci.sh
#!/bin/bash
# Based on a test script from avsm/ocaml repo https://github.com/avsm/ocaml
CHROOT_DIR=/tmp/arm-chroot
MIRROR=http://archive.raspbian.org/raspbian
VERSION=wheezy
CHROOT_ARCH=armhf
# Debian package dependencies for the host
HOST_DEPENDENCIES="debootstrap qemu-user-static binfmt-support sbuild"