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 / 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 / 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>

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 / 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