Skip to content

Instantly share code, notes, and snippets.

View mondalaci's full-sized avatar

László Monda mondalaci

View GitHub Profile
@mondalaci
mondalaci / UhkKeyboardDescriptors.c
Created December 31, 2014 15:28
UHK device and configuration descriptors
const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
{
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
.USBSpecification = VERSION_BCD(01.10),
.Class = USB_CSCP_NoDeviceClass,
.SubClass = USB_CSCP_NoDeviceSubclass,
.Protocol = USB_CSCP_NoDeviceProtocol,
.Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE,
2022/05/07 13:53:30 [error] 919#919: *242895 FastCGI sent in stderr: "tehackingkeyboard.com/wordpress/wp-includes/class-wp-query.php on line 4125PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/
class-wp-query.php on line 4121PHP message: PHP Warning: Attempt to read property "post_title" on null in /var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-query.php on line 4123PHP message: PHP Warning: Attempt to read property "post_name" on null in
/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-query.php on line 4125PHP message: PHP Warning: Attempt to read property "ID" on null in /var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-query.php on line 4121PHP message: PHP Warning
: Attempt to read property "post_title" on null in /var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-query.php on line 4123PHP message: PHP Warning: Attempt to read property "post_name"
@mondalaci
mondalaci / openvpn-on-openwrt.sh
Created April 4, 2013 00:54
OpenVPN configuration on OpenWrt
cat >> /etc/firewall << END
iptables -t filter -A input_wan -p udp --dport 1194 -j ACCEPT
iptables -I INPUT 1 -i tun+ -j ACCEPT
iptables -I FORWARD 1 -i tun+ -j ACCEPT
iptables -I OUTPUT 1 -o tun+ -j ACCEPT
iptables -I FORWARD 1 -o tun+ -j ACCEPT
END
/etc/init.d/firewall restart
@mondalaci
mondalaci / sass-builds-on-pi.txt
Created August 27, 2017 21:52
Sass successfully builds on the Pi
pi@raspberrypi:~/repos/agent $ npm install node-sass
> node-sass@4.5.3 install /home/pi/repos/agent/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-arm-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.3/linux-arm-57_binding.node":
HTTP error 404 Not Found
Running Steam on linuxmint 19.3 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
/home/laci/.local/share/Steam/ubuntu12_32/steam
Installing breakpad exception handler for appid(steam)/version(1591251555)
Installing breakpad exception handler for appid(steam)/version(1591251555)
Loaded SDL version 2.0.13-5893924
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
@mondalaci
mondalaci / fusion-video.js
Created May 3, 2020 23:25
Avada fusion-video.js beutified
jQuery(document).ready(function() {
jQuery(".fusion-video").each(function() {
!jQuery(this).parents(".fusion-modal").length && 1 == jQuery(this).data("autoplay") && jQuery(this).is(":visible") && jQuery(this).find("iframe").each(function() {
jQuery(this).attr("src", jQuery(this).attr("src").replace("autoplay=0", "autoplay=1"))
})
}), jQuery(window).on("resize", function() {
var e, i = document.querySelectorAll("iframe"),
o = i.length;
if (jQuery(".fusion-youtube").each(function() {
jQuery(this).is(":visible") || jQuery(this).parents(".fusion-modal").length && !jQuery(this).parents(".fusion-modal").is(":visible") || jQuery(this).find("iframe").each(function() {

Contributor Agreement

Individual Contributor Exclusive License Agreement version 1.0.0

Thank you for your interest in contributing to Ultimate Gadget Laboratories Kft.'s Ultimate Hacking Keyboard ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us.

By signing this Agreement, you agree that the following terms apply to all of your past, present and future contributions to the project.

How to use this Contributor Agreement

@mondalaci
mondalaci / dokuwiki-password-generator.php
Created March 30, 2014 02:10
DokuWiki password generator
<?php
$filename = dirname('.') . $_SERVER['PHP_SELF'];
if (isset($_GET['download-source'])) {
header("Content-type: application/force-download");
$file = fopen(__FILE__, 'r');
$content = fread($file, filesize(__FILE__));
print $content;
die();
}
@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 / uhk-left-symbols.txt
Created September 26, 2017 23:28
UHK left firmware symbols sorted by size
laci@spark ~/projects/uhk/firmware/left/build/kds/uhk-left-release $ nm --print-size --size-sort uhk-left.elf
200000b6 00000001 b byteIn.4509
200001d8 00000001 b prevEvent.4488
200001cc 00000001 b rxMessagePos.4489
000006e5 00000002 W __aeabi_idiv0
000006e5 00000002 W __aeabi_ldiv0
200001e0 00000002 b crc16data.4497
00000f0d 00000002 T _exit
00000541 00000004 W ADC0_IRQHandler
00000541 00000004 W CMP0_IRQHandler