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 / git-signed-commits-stats.sh
Created April 1, 2024 12:53
git-signed-commits-stats.sh
#!/bin/bash
since="${1:-1 month ago}"
good_signatures=0
unsigned_commits=0
bad_signatures=0
unknown_signatures=0
# Loop through each commit from the last 2 years
while read -r commit_hash signature_status; do

Bellow you can find config diffs for all targets and thus see changes introduced by this pull request on commit c28c21784363

apm821xx/nand config diff (click to expand)
@ynezz
ynezz / qadbkey-unlock.c
Last active May 4, 2023 10:23
quectel ec25-e notes
/*
* Written by igem, 2020 ;)
*
* gcc qadbkey-unlock.c -o qadbkey-unlock -lcrypt
*
*/
#include <crypt.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@ynezz
ynezz / prpl-webui-container-proxy-demo.md
Last active October 15, 2022 10:52
prpl-webui container proxied demo

prpl-webui demo with proxied TR-181 REST API

image

This demo uses slim prplOS based prpl-webui-testing-container-x86-64 container which serves only upcoming prplOS reference prpl-webui web UI and otherwise it's using TR181 REST API from the host.

Requests to TR-181 REST API /serviceElements endpoint are being proxied to host TR-181 REST API endpoint on http://192.168.1.1:8080 backend server and can be changed in /etc/lighttpd/conf.d/50-prplos-auth.conf file if needed be:

$HTTP["url"] =~ "^/serviceElements" {
@ynezz
ynezz / nvrammanager.c
Last active December 4, 2023 23:55
TP-Link Archer C7 v5 EU nvrammanager nm_checkSoftVer() dissasembly
/*
root@ArcherC7v5:/# nvrammanager -r /proc/self/fd/1 -p soft-version
soft_ver:1.1.0 Build 20201120 rel.50406
fw_id:C339BA6D3F263C8AB6919A76DF430336
root@ArcherC7v5:/# md5sum /usr/bin/nvrammanager
404b8d952f7cdc97199a0afc2e081a9a /usr/bin/nvrammanager
*/
int nm_checkSoftVer(int param_1,int param_2)
@ynezz
ynezz / PXL_20210228_104208024.jpg
Last active August 4, 2022 11:31
Belkin RT3200
PXL_20210228_104208024.jpg
@ynezz
ynezz / docker-compose.yml
Created January 22, 2021 08:51
OpenWrt staging builds on GitLab with autoscaling VPSes on Hetzner Cloud
version: '2'
services:
hetzner-runner:
image: mawalu/hetzner-gitlab-runner:latest
volumes:
- "./hetzner_config:/etc/gitlab-runner"
@ynezz
ynezz / pgp-key-info.txt
Last active February 21, 2020 15:27
My current PGP key 0x1F2152094BA2692F
pub rsa4096/0x1F2152094BA2692F 2020-02-21 [C]
Key fingerprint = 78B6 D91C C095 5D00 7EC7 40AC 1F21 5209 4BA2 692F
uid [ultimate] Petr Štetiar (ynezz) <ynezz@true.cz>
uid [ultimate] Gaben Štetiar Petr (Gaben) <petr.stetiar@gaben.cz>
sub rsa4096/0x58EE120F30CC02D3 2020-02-21 [S] [expires: 2022-02-20]
sub rsa4096/0x0910E6576EDCCD48 2020-02-21 [E] [expires: 2022-02-20]
sub rsa4096/0x64999F01767C69FF 2020-02-21 [A] [expires: 2022-02-20]
@ynezz
ynezz / test-lnum.lua
Created May 17, 2019 07:09
Lua number parsing test cases
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 March 24, 2019 07:57
MikroTik RouterBOARD product codes
RB912UAG-6HPnD-OUT
RBcAPGi-5acD2nD
RBDiscG-5acD
RBDynaDishG-6HnD
RBD52G-5HacD2HnD-TC
RB760iGS
RBLDF-2nD
RBLDFG-5acD
RBLHG-2nD
RBLHGR&R11e-4G