Skip to content

Instantly share code, notes, and snippets.

View ynezz's full-sized avatar
💭
Drinking beers, hunting deers.

Petr Štetiar ynezz

💭
Drinking beers, hunting deers.
View GitHub Profile
@ynezz
ynezz / debian-live-create-usb-key.sh
Last active October 26, 2020 18:28
UEFI + BIOS bootable live Debian with persistence
#!/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 January 31, 2017 08:42
Makefile for building OpenResty from source
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 October 7, 2017 13:28
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 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 December 12, 2016 08:29
[PATCH] kernel: Add spidev patch to silence warning about spidev listing in DT
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