Skip to content

Instantly share code, notes, and snippets.

View martonmiklos's full-sized avatar

Miklós Márton martonmiklos

View GitHub Profile
@martonmiklos
martonmiklos / Bosch indego firmware strings.txt
Created September 25, 2022 19:46
Bosch indego firmware strings.txt
BOOTING xxxxx
CodVnxxx.bin
RdMapxxx.bin
CovInxxx.bin
CvMapxxx.bin
HMI__xxx.bin
DSMu1xxx.bin
DSMu2xxx.bin
LTH__xxx.bin
GrAstxxx.bin
@martonmiklos
martonmiklos / gist:27564ca2fc0ac7108c7fccc117e1413a
Created June 16, 2022 12:37
Circle contour for gencad issue reproduction
$HEADER
GENCAD 1.4
USER ""
DRAWING board-outline.cad
REVISION ""
UNITS USER 1000
ORIGIN 0 0
INTERTRACK 0
$ENDHEADER
@martonmiklos
martonmiklos / gencad.cad
Created June 14, 2022 14:51
gencad issue test
$HEADER
GENCAD 1.4
USER ""
DRAWING board-outline.cad
REVISION ""
UNITS USER 1000
ORIGIN 0 0
INTERTRACK 0
$ENDHEADER
@martonmiklos
martonmiklos / fix_barcode_layout.sh
Created March 21, 2022 08:37
script for an udev rule to fix layout for a specific barcodereader
#!/bin/bash
usbkbd=`xinput -list | grep -c "USBKey Chip USBKey Module"`
if [[ "$usbkbd" -gt 0 ]]
then
usbkbd_ids=`xinput -list | grep "USBKey Chip USBKey Module" | awk -F'=' '{print $2}' | cut -c 1-2`
usbkbd_layout="us"
for ID in $usbkbd_ids
do
setxkbmap -device "${ID}" -layout "${usbkbd_layout}"
done
@martonmiklos
martonmiklos / gist:7daae1ef2a80c48262e1dd7f73d2047f
Created December 22, 2021 21:16
Bburago BLE RC car gattool output
0A:C0:31:44:FE:A1 SL-SF1000:
[ ][LE]> connect 0A:C0:31:44:FE:A1
Attempting to connect to 0A:C0:31:44:FE:A1
Connection successful
[0A:C0:31:44:FE:A1][LE]> char-desc
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, uuid: 00002800-0000-1000-8000-00805f9b34fb
4360 clock_gettime(CLOCK_MONOTONIC, {tv_sec=323600, tv_nsec=549473975}) = 0
4360 clock_gettime(CLOCK_MONOTONIC, {tv_sec=323600, tv_nsec=549885591}) = 0
4360 epoll_wait(4, [{EPOLLIN, {u32=77, u64=77}}], 64, -1) = 1
4360 clock_gettime(CLOCK_MONOTONIC, {tv_sec=323602, tv_nsec=372941933}) = 0
4360 recvmsg(77, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\1\1u\2\0\0\v\0\0\0k\0\0\0\1\1o\0\1\0\0\0/\0\0\0\0\0\0\0\6\1s\0\24\0\0\0org.sailfishos.share\0\0\0\0\2\1s\0\24\0\0\0org.sailfishos.share\0\0\0\0\3\1s\0\5\0\0\0share\0\0\0\10\1g\0\5a{sv}\0\0\0\0\0\0m\2\0\0\0\0\0\0\10\0\0\0mimeType\0\1s\0\n\0\0\0text/vcard\0\0\t\0\0\0resources\0\2av\0\0\0\352\1\0\0\5a{sv}\0\0\332\1\0\0\0\0\0\0\4\0\0\0data\0\1s\0\250\1\0\0BEGIN:VCARD\r\nVERSION:2.1\r\nFN;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:Nagy Nador3\r\nN;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:Nagy Nador3;;;;\r\nX-QTPROJECT-FAVORITE:true;0\r\nREV:2020-09-01T18:19:26Z\r\nEMAIL;ENCODING=QUOTED-PRINTABLE;OTHER:bunagabo=40kmail.com\r\nTEL;CELL;HOME:+36903718119\r\nADR
Building wheels for collected packages: serial-production-document-checker
Building wheel for serial-production-document-checker (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/mm/Projektek/serial-production-tools/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-rkezwg2u/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-rkezwg2u/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-2d8pkqrx
cwd: /tmp/pip-req-build-rkezwg2u/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
/**
* LEAPS - Low Energy Accurate Positioning System.
*
* Simple user application.
*
* Copyright (c) 2016-2019, LEAPS. All rights reserved.
*
*/
#include "dwm.h"

Shell Motorsport Bluetooth Remote Control

Shell Motorsport collection

Shell Oil Company in its gas station offers loyalty program under name Shell ClubSmart. Members collect points which can be later used to get rewards. In 2020 they have offered a collection of die-cast car models under name Shell Motorsport. All models of the colletion are equipped with electrical motor. One of the models - Nissan Formula E Gen 2 Car - contains a battery that can be used to control a model remotely over Bluetooth. In some markets a battery with

@martonmiklos
martonmiklos / 51-e1005-barcodereader.rules
Created August 13, 2021 15:46
Force us layout for athe Chinayoko E1005 barcode reader module
ACTION=="bind" SUBSYSTEMS=="usb", ATTRS{idVendor}=="6778", ATTRS{idProduct}=="0112", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/mm/.Xauthority", RUN+="/etc/udev/rules.d/fix_barcode_layout.sh"