Skip to content

Instantly share code, notes, and snippets.

View martonmiklos's full-sized avatar

Miklós Márton martonmiklos

View GitHub Profile
// This file is generated by KDAB's kdwsdl2cpp from test_qsharedpointer_include_wsdl.wsdl.
// All changes you do to this file will be lost.
/*
You may use and relicense this generated file without restriction.
*/
#pragma once
#include <QtCore/QList>
#include <QSharedPointer>
#include <QtCore/QSharedData>
@martonmiklos
martonmiklos / gist:d688b2a0156bbe3154e44e9d9053c063
Created March 15, 2021 09:25
stflash - stlinkV3 STM32F030CC
mm@lapos:~/Projektek/stlink$ ./bin/st-info --probe
Found 1 stlink programmers
version: V3J7S1
serial: 303033343030314433303338353130393334333333393335
hla-serial: "\x30\x30\x33\x34\x30\x30\x31\x44\x33\x30\x33\x38\x35\x31\x30\x39\x33\x34\x33\x33\x33\x39\x33\x35"
flash: 262144 (pagesize: 2048)
sram: 32768
chipid: 0x0442
descr: F09X
mm@lapos:~/Projektek/stlink$ ./bin/st-flash --area=main read /tmp/foo.bin 0x08000000 0x8000
@martonmiklos
martonmiklos / gist:20bdd7aee631f62ac689c5268854fbb8
Created March 15, 2021 09:21
stflash - stlinkV3 STM32L010R8
mm@lapos:~/Projektek/stlink$ git show --summary
commit 9956bdeaab034033c3959751460e6cffe464df52 (HEAD -> develop, origin/develop)
Merge: 1eaa638 dd877b1
Author: nightwalker-87 <[email protected]>
Date: Sun Mar 14 21:17:53 2021 +0100
Merge pull request #1104 from Ant-ON/fix_stlink_v1
Fixed support for STLINK/V1 programmer
mm@lapos:~/Projektek/stlink$ git show --summary
commit 9956bdeaab034033c3959751460e6cffe464df52 (HEAD -> develop, origin/develop)
Merge: 1eaa638 dd877b1
Author: nightwalker-87 <[email protected]>
Date: Sun Mar 14 21:17:53 2021 +0100
Merge pull request #1104 from Ant-ON/fix_stlink_v1
Fixed support for STLINK/V1 programmer
Address is not set. Trying to discover.
Connecting to device 192.168.8.1...
Sending handshake to get token
Starting local http server...
Serving http server at 192.168.8.235:32811
Sending ota command with parameters: {"mode": "normal", "install": "1", "app_url": "http://192.168.8.235:32811/v11_004018.12edfghb75.fullos.pkg", "file_md5": "74f6635fc618cc5dc9c18dc561905bd2", "proc": "dnld install"}
unable to parse json '': Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "flasher.py", line 210, in <module>
main()
/*
I could not get the Firefox to remember my credentials on this freakin website, so I created this
greasemonkeyscript to bypass that.
Use only on computers where you have safety protections before the browser access...
*/
// ==UserScript==
// @name MVMNext autologin
@martonmiklos
martonmiklos / gist:ad50c41ac38c1dd7afe0b57fa1291704
Last active January 17, 2021 11:41
tri.o.m. 338293 Honda CBR600RR rear lamp bom
LD1-12 Osram LR G6SP-CBEA-1-1
D1, D2 Vishay/Diodes S1AFG
U1-U6 LM317 SO8
R7, R8 10K
R9, R10 4k7
R3, R4, R5, R6 30R9
R1, R2 62R
TS1, TS2
Q1, Q2 1F P
@martonmiklos
martonmiklos / qmetaenumcombobox.h
Last active February 21, 2021 11:18
QComboBox wit autofill from QMetaEnum
// see https://github.com/martonmiklos/qt_goodies/blob/master/qmetaenumcombobox.h for more features
#pragma once
#include <QObject>
#include <QWidget>
#include <QVariant>
#include <QComboBox>
#include <QDebug>
#include <QMetaEnum>
mm@lapos:~/Projektek/xiaomi_tempmeter/BuildEnvironmentATCMiThermometer$ ./01_make.sh | grep implicit
../../SDK//components/drivers/8258/uart.c:521:2: warning: implicit declaration of function 'gpio_set_func2'
app.c:56:2: warning: implicit declaration of function 'init_sensor'
app.c:57:2: warning: implicit declaration of function 'init_lcd'
app.c:58:2: warning: implicit declaration of function 'init_flash'
app.c:59:2: warning: implicit declaration of function 'show_atc_mac'
app.c:60:2: warning: implicit declaration of function 'get_battery_mv'
app.c:61:2: warning: implicit declaration of function 'get_battery_level'
app.c:80:4: warning: implicit declaration of function 'read_sensor'
app.c:86:5: warning: implicit declaration of function 'set_adv_data'
// ==UserScript==
// @name ODBE save login
// @version 1
// @grant none
// @include https://rendeles.odbe.hu/vevo/belepes
// ==/UserScript==
var formItems = ['login-form-tmp', 'tmp_password', 'tmp_userid', 'login-form', 'password', 'userid'];