Skip to content

Instantly share code, notes, and snippets.

View speters's full-sized avatar

Sönke J. Peters speters

View GitHub Profile
@speters
speters / oexserverd_opts.md
Last active May 22, 2021 20:18
oeserverd/oexserverd options
-a              Version info
-d              Debug
-p <pipename>   named pipe name
-s              test is dongle available (0=no, 1=yes)
-t              get dongle serial number (0 if no dongle)
-k <fileprefix> Make SGLock fingerprint (fpr file)
-g <fileprefix> Make fingerprint (fpr file)
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 July 14, 2020 08:43
/usr/bin/freecad wrapper to always start latest version
#!/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 January 16, 2020 15:48
get email addresses from Android E-Mail app
/* 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
@speters
speters / nvpedia_cov.geojson
Created August 19, 2019 15:15
NV-Pedia coverages
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 January 31, 2019 06:53
Violentmonkey/Greasemonkey userscript to embed images on selected sites
// ==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==
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"
/*
* 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
/* ====================================================================
*
* 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.
@speters
speters / Spanner3.fcstd
Last active February 27, 2018 09:03
Anet A6 X-axis belt tensioner