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
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
ynezz / mikrotik-routerboard-product-codes.txt
Created Mar 24, 2019
MikroTik RouterBOARD product codes
View mikrotik-routerboard-product-codes.txt
RB912UAG-6HPnD-OUT
RBcAPGi-5acD2nD
RBDiscG-5acD
RBDynaDishG-6HnD
RBD52G-5HacD2HnD-TC
RB760iGS
RBLDF-2nD
RBLDFG-5acD
RBLHG-2nD
RBLHGR&R11e-4G
@ynezz
ynezz / debian-live-create-usb-key.sh
Last active Dec 16, 2018
UEFI + BIOS bootable live Debian with persistence
View debian-live-create-usb-key.sh
#!/bin/bash
if [[ ${EUID} -ne 0 ]]; then
echo "this script must be executed with elevated privileges"
exit 1
fi
iso=$1
dev=$2
@ynezz
ynezz / Makefile
Last active Jan 31, 2017
Makefile for building OpenResty from source
View Makefile
OR_VERSION ?= 1.11.2.2
OR_DL_URL ?= https://openresty.org/download/
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
ynezz / openmesh-gpl-compliance.md
Last active Oct 7, 2017
OpenMesh released source code for GPL copyrighted parts
View openmesh-gpl-compliance.md

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 http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html (please see section 3).

BTW, there is nice vendor FAQ for GNU Public License compliance http://gpl-violations.org/faq/vendor-faq/

@ynezz
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?= <ynezz@true.cz>
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.