Skip to content

Instantly share code, notes, and snippets.

Drinking beers, hunting deers.

Petr Štetiar ynezz

Drinking beers, hunting deers.
Block or report user

Report or block ynezz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ynezz / test-lnum.lua
Created May 17, 2019
Lua number parsing test cases
View test-lnum.lua
local test_cases = {
{ 0x7fffffff, "2147483647" },
{ 2147483647, "2147483647" },
{ 0xffffffff, "4294967295" },
{ 4294967295, "4294967295" },
{ 0x7fffffffffffffff, "9.2233720368548e+18" },
{ 9223372036854775807, "9.2233720368548e+18" },
ynezz / mikrotik-routerboard-product-codes.txt
Created Mar 24, 2019
MikroTik RouterBOARD product codes
View mikrotik-routerboard-product-codes.txt
ynezz /
Last active Dec 16, 2018
UEFI + BIOS bootable live Debian with persistence
if [[ ${EUID} -ne 0 ]]; then
echo "this script must be executed with elevated privileges"
exit 1
ynezz / Makefile
Last active Jan 31, 2017
Makefile for building OpenResty from source
View Makefile
OR_SRC_DIR ?= openresty-$(OR_VERSION)
OR_TGZ ?= $(OR_SRC_DIR).tar.gz
OR_PREFIX ?= /opt/openresty/local
OR_PREPARED ?= $(OR_SRC_DIR)/.prepared
OR_VERIFIED ?= $(OR_SRC_DIR)/.verified
OR_PGP_KEY := A0E98066
OR_PGP_FP := 2545 1EB0 8846 0026 195B D62C B550 E09E A0E9 8066
OR_ENV ?= env-openresty-$(OR_VERSION)
ynezz /
Last active Oct 7, 2017
OpenMesh released source code for GPL copyrighted parts

Sent via support portal on November 18th, 2016

Dear OpenMesh support,

I would like to kindly ask you for source code of software components you're distributing in binary form in your 6.1.1 firmware in your OM5P-ACv2 and MR1750 products which I've bought recently. I'm mainly interested in source code of U-Boot bootloader and Linux kernel parts, both are licensed to OpenMesh under GNU Public License.

Providing customers with the source code, along with any modifications, is a requirement of the GNU Public License (please see section 3).

BTW, there is nice vendor FAQ for GNU Public License compliance

ynezz / 0001-kernel-Add-spidev-patch-to-silence-warning-about-spi.patch
Last active Dec 12, 2016
[PATCH] kernel: Add spidev patch to silence warning about spidev listing in DT
View 0001-kernel-Add-spidev-patch-to-silence-warning-about-spi.patch
From c80d1a185cde478243f19f410ac0fb06769f6c33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <>
Date: Tue, 12 Jul 2016 12:31:55 +0200
Subject: [PATCH] kernel: Add spidev patch to silence warning about spidev
listing in DT
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[ 32.836659] spidev spi0.0: buggy DT: spidev listed directly in DT
You can’t perform that action at this time.