Skip to content

Instantly share code, notes, and snippets.

View mondalaci's full-sized avatar

László Monda mondalaci

View GitHub Profile
@mondalaci
mondalaci / devices.json
Created June 28, 2017 10:44
HID devices list
[
{
"vendorId": 1133,
"productId": 49970,
"path": "0002:000a:00",
"release": 769,
"interface": 0
},
{
"vendorId": 1133,
/*
* GENERATED FILE - DO NOT EDIT
* (c) Code Red Technologies Ltd, 2008-2013
* (c) NXP Semiconductors 2013-2017
* Generated linker script file for MKL03Z32xxx4
* Created from linkscript.ldt by FMCreateLinkLibraries
* Using Freemarker v2.3.23
* MCUXpresso IDE Debug Build on May 20, 2017 1:03:48 AM
*/
@mondalaci
mondalaci / uhk-left-kds-build-log.txt
Created May 5, 2017 16:54
UHK left KDS build log
18:51:30 **** Incremental Build of configuration v7-release-srec for project uhk-right ****
make -k all
Building file: /home/laci/projects/uhk/firmware/lib/KSDK_2.0_MK22FN512xxx12/middleware/usb_1.0.0/device/usb_device_dci.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -DCPU_MK22FN512VLH12 -DUSB_STACK_BM -DUHK_PCB_MAJOR_VERSION=7 -I../../../src -I../../../src/ksdk_usb -I../../../src/buspal -I../../../src/buspal/bm_usb -I../../../../lib/KSDK_2.0_MK22FN512xxx12/middleware/usb_1.0.0 -I../../../../lib/KSDK_2.0_MK22FN512xxx12/middleware/usb_1.0.0/osa -I../../../../lib/KSDK_2.0_MK22FN512xxx12/middleware/usb_1.0.0/include -I../../../../lib/KSDK_2.0_MK22FN512xxx12/middleware/usb_1.0.0/device -I../../../../lib/KSDK_2.0_MK22FN512xxx12/CMSIS/Include -I../../../../lib/KSDK_2.0_MK22FN512xxx12/devices/MK22F51212/drivers -I../../../../lib/KSDK_2.0_MK22FN512xxx12/devices/MK22F51212 -I
@mondalaci
mondalaci / unreal-tournament-segfault.txt
Created March 29, 2017 12:17
Unreal Tournament segfault on Linux
Project file not found: /home/laci/download/LinuxNoEditor/UnrealTournament/UnrealTournament.uprojectUsing binned.
4.15.0-3361702+++UT+Release-Next 511 0
Disabling core dumps.
LogInit:Display: Running engine for game: UnrealTournament
LogInit:Display: Project file not found: /home/laci/download/LinuxNoEditor/UnrealTournament/UnrealTournament.uproject
LogInit:Display: Attempting to find via project info helper.
LogUProjectInfo: Found projects:
LogPlatformFile: Using cached read wrapper
LogInit:Display: RandInit(-468428806) SRandInit(-468428806).
LogTaskGraph: Started task graph with 4 named threads and 7 total threads with 1 sets of task threads.
@mondalaci
mondalaci / rdesc.txt
Created March 3, 2017 20:01
Logitech K400 Plus keyboard HID report descriptor dump
cat /sys/kernel/debug/hid/0003:046D:C332.029F/rdesc
05 01 09 06 a1 01 85 01 05 07 19 e0 29 e7 15 00 25 01 75 01 95 08 81 02 81 03 95 06 75 08 15 00 26 a4 00 19 00 2a a4 00 81 00 c0 05 0c 09 01 a1 01 85 03 75 10 95 02 15 01 26 8c 02 19 01 2a 8c 02 81 00 c0 05 01 09 80 a1 01 85 04 75 02 95 01 15 01 25 03 09 82 09 81 09 83 81 60 75 06 81 03 c0 06 00 ff 09 01 a1 01 85 10 75 08 95 06 15 00 26 ff 00 09 01 81 00 09 01 91 00 c0 06 00 ff 09 02 a1 01 85 11 75 08 95 13 15 00 26 ff 00 09 02 81 00 09 02 91 00 c0
INPUT(1)[INPUT]
Field(0)
Application(GenericDesktop.Keyboard)
Usage(8)
Keyboard.00e0
Keyboard.00e1
@mondalaci
mondalaci / lsusb-strace.txt
Created March 3, 2017 19:45
stracing lsusb to figure out why the USB report descriptors are not dumped
echo -n 2-10.3 > /sys/bus/usb/drivers/usb/unbind
strace lsusb -vd 046d:c52b
execve("/usr/bin/lsusb", ["lsusb", "-vd", "046d:c52b"], [/* 77 vars */]) = 0
brk(NULL) = 0x13ae000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fee87d46000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=184944, ...}) = 0
@mondalaci
mondalaci / active.md
Created May 10, 2016 13:36 — forked from paulmillr/active.md
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Mon, 01 Dec 2014 00:48:25 GMT till Tue, 01 Dec 2015 00:48:25 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 508)
@mondalaci
mondalaci / share-buttons.html
Created January 1, 2016 18:00
Bootstrap share buttons
<button type="button" class="btn" style="background-color:#234999" onclick="location.href='https://www.facebook.com/sharer/sharer.php?u='+encodeURI(window.location.href)">Share</button> <button type="button" class="btn" style="background-color:#6CDFEA" onclick="location.href='https://twitter.com/home?status=The+UHK+got+funded,+goes+open+source!+@UltHackKeyboard '+encodeURI(window.location.href)">Tweet</button> <button type="button" class="btn" style="background-color:#E34429" onclick="location.href='https://plus.google.com/share?url='+encodeURI(window.location.href)">+1</button>
@mondalaci
mondalaci / bootstrap-cta.html
Created January 1, 2016 17:59
Bootstrap CTA for blog
<button type="button" class="btn btn-danger btn-lg" onclick="location.href='https://www.crowdsupply.com/ugl/ultimate-hacking-keyboard'">Veszek 1 UHK-t!</button>
@mondalaci
mondalaci / uhk-animation.js
Created February 3, 2015 22:41
Ultimate Hacking Keyboard hand animation code
function animateHands(svgParam) {
'use strict';
var TYPING_DURATION = 1000;
var TYPING_REGION_X = 50;
var TYPING_REGION_Y = 20;
var HAND_SPEED_FACTOR = 2;
var HAND_MOVEMENT_INSIDE_DURATION = 150;
var HAND_MOVEMENT_OUTSIDE_DURATION = 500;
var HAND_FINGERS_POSITION_OFFSET_Y = 150;