Skip to content

Instantly share code, notes, and snippets.

View martonmiklos's full-sized avatar

Miklós Márton martonmiklos

View GitHub Profile
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
import sys
from lxml import etree
def fixTsFile(path) :
fixWords = [
"Time: ",
(21:45:45) martonmiklos: hello folks
(21:46:09) martonmiklos: I came across the following patch
(21:46:09) martonmiklos: https://review.coreboot.org/c/flashrom/+/39841
(21:46:23) martonmiklos: which makes sense from the submitter side I think
(21:46:39) martonmiklos: but this comment
(21:46:39) martonmiklos: https://github.com/flashrom/flashrom/blob/master/cli_classic.c#L456
(21:47:02) martonmiklos: made me think about the fact that the delay calibration is really necessary in all times
(21:47:42) martonmiklos: (at least I know for sure from two programmer drivers what I wrote that there I did not used any harddelays)
(21:48:05) martonmiklos: do I understand correctly that the delay calibration is only necessary for programmers
(21:48:13) martonmiklos: where bitbanging is used?
CAN_TxHeaderTypeDef header;
uint32_t mailbox;
header.DLC = 6; // sending 6 bytes
header.StdId = 0x507;
header.RTR = CAN_RTR_DATA;
header.IDE = CAN_ID_STD;
uint8_t buffer[8] = {0x03, 0x00, 0x00, 0x00, 0x00, 0x00};
HAL_CAN_AddTxMessage(hcan, &header, buffer, &mailbox);
HAL_Delay(100);
Külfés:
uint32_t start = HAL_GetTick();
while (HAL_CAN_AddTxMessage(hcan, &CAN_TxHeader, CAN_TxBuffer, &CAN_TxMailBox) != HAL_OK) {
if (HAL_GetTick() - start > timeout) {
return HAL_TIMEOUT;
}
HAL_Delay(1);
}
return HAL_OK;
20:57:03: Checking available ports...
20:57:03: Found 101 free ports.
20:57:03: Starting gdbserver --multi :10000...
20:57:03: Debugging starts
Listening on port 10000
Remote debugging from host 172.31.0.252
Process /opt/hunagabo_test/bin/hunagabo_test created; pid = 727
File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead.
QML debugging is enabled. Only use this in a safe environment.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
@martonmiklos
martonmiklos / gist:246f326a2ffedcc2c9fbe89f7e671a75
Created March 12, 2020 23:13
boot2qt rpi with HDMI + DSI LCD
00:02:52: SSH connection failure.
packet_write_wait: Connection to 172.31.0.1 port 22: Broken pipe
00:02:56: Starting /opt/hunagabo_test/bin/hunagabo_test ...
QML debugging is enabled. Only use this in a safe environment.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_kms_egldevice", "eglfs_kms")
qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_kms", "eglfs_emu", "eglfs_kms_egldevice")
qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_kms"
@martonmiklos
martonmiklos / gist:727604c5a558a1d2cee4785f3fde79ec
Created February 24, 2020 17:04
KDSOAP compile comparison after moving libkode as a submodule
mm@mm-precision:/tmp$ git clone https://github.com/KDAB/KDSoap.git KDSoap_KDAB
Cloning into 'KDSoap_KDAB'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (277/277), done.
remote: Compressing objects: 100% (251/251), done.
remote: Total 15426 (delta 98), reused 66 (delta 25), pack-reused 15149
Receiving objects: 100% (15426/15426), 13.74 MiB | 6.22 MiB/s, done.
Resolving deltas: 100% (9821/9821), done.
mm@mm-precision:/tmp$ cd KDSoap_KDAB/
mm@mm-precision:/tmp/KDSoap_KDAB$ cmake -DCMAKE_BUILD_TYPE=Release .
mm@mm-precision:/tmp$ git clone https://github.com/KDAB/KDSoap.git KDSoap
Cloning into 'KDSoap'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (277/277), done.
remote: Compressing objects: 100% (251/251), done.
remote: Total 15426 (delta 98), reused 66 (delta 25), pack-reused 15149
Receiving objects: 100% (15426/15426), 13.74 MiB | 6.24 MiB/s, done.
Resolving deltas: 100% (9821/9821), done.
mm@mm-precision:/tmp$ cd KDSoap/
mm@mm-precision:/tmp/KDSoap$ cmake .
@martonmiklos
martonmiklos / gist:4463bac16eaf7215ad7929581ae74804
Last active February 10, 2020 09:04
Infinite QLineSeries
/****************************************************************************
**
** Copyright (C) 2020 Miklos Marton <[email protected]>
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Charts module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
@martonmiklos
martonmiklos / hetuning.user.js
Last active September 22, 2024 14:28
HE tuning greasemonkey szkript
// ==UserScript==
// @name HE tuning
// @version 2
// @grant none
// @include https://www.hobbielektronika.hu*
// ==/UserScript==
// kb. mindig használt cuccot árulok
if (document.getElementById('fiitem_condition') && document.getElementById('fiitem_condition').value == 'NONE')
document.getElementById('fiitem_condition').value = "USED";