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 / Ais SOTDMA Transceiver B600 pinout.md
Last active December 8, 2021 16:03
Ais SOTDMA Transceiver B600 pinout

Ais SOTDMA Transceiver B600 pinout

In einer Abbildung im Manual kann man auf der Buchse ein "LTW" lesen, also AmphenolLTW als Hersteller. Das Kabel könnte dann ABU-12BFFM-LL7A__ sein.

Mit den Platinenbildern der FCC Anmeldung kann man nachvollziehen, an welche Pins die NMEA-Datenleitungspaare gehen. Ausserdem kann man die Leitungen der "silent" Pins in Richtung eines ICs sehen, der ein Optokoppler sein könnte, was zur Funktion passen würde.

Die Litzenfarben des Amphenol-Pigtails entsprechen denen aus dem Handbuch des AIS Senders.

@speters
speters / fbhostfilter.py
Last active September 8, 2021 18:13
FritzBox HostFilter script to enable/disbale WAN access of lan devices
#!/usr/bin/env python3
import tr064
import argparse
import configparser
from os import path
from socket import gethostbyname_ex
from time import sleep
args = {}
@speters
speters / git-search-exe.sh
Created May 23, 2021 19:45
git repo search for non-stripped files
#!/bin/sh
# git-search-exe.sh
# 20210523 by Soenke J. Peters @ opcenter.de
#
# search for files with symbols (not stripped) or containing debug_info in a git repository
# as there are sometimes interesting leftovers which are a good start for RE
DIR=$1
CWD=$(pwd)
@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)
DPDtables.sql:
xsltproc xsdtosql.xsl ~/tmp/vitosoft/DPDefinitions.xsd | sed -e '/^\s*$$/d;s/^\s*CREATE/CREATE/g' > $@
all: clean DPDtables.sql
clean:
rm -f DPDtables.sql
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 / 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 / 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
/* ====================================================================
*
* 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.