Skip to content

Instantly share code, notes, and snippets.

/**
* Scan networks and print in screen
*/
#include "WiFi.h"
#include "HT_SSD1306Wire.h"
#define BAUDRATE 115200
// addr , freq , i2c group , resolution , rst
@yagop
yagop / rules.txt
Created August 27, 2024 08:36
uBlock hckrnews Dark mode
hckrnews.com##body:style(background-color:#0e1113!important)
hckrnews.com##a:style(color:#ffffff!important)
@yagop
yagop / client.sh
Created April 12, 2025 06:55
Test max connections
#!/bin/bash
for port in `seq 50000 60000`;
do
nc -vw3 192.168.0.1 $port &
done
wait
@yagop
yagop / btcd.service
Created June 30, 2025 06:54
Btcd daemon service
[Unit]
Description=Bitcoin daemon
Documentation=https://github.com/btcsuite/btcd/
# https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/btcd \
@yagop
yagop / Dockerfile
Last active November 17, 2025 09:15
ffmpeg Alpine for OpenWRT compilation
# ===============================
# Alpine-based Dockerfile for FFmpeg compilation
# Use Alpine Linux as the base image which uses musl libc
# Should be able to run in OpenWrt (tested in OpenWrt 24.10.2)
# Static build with libx264 + libx265 + libdav1d + libogg + libvorbis + libopus + libmp3lame + libvpx + libtheora + libaom + libfdk-aac + libass + libfreetype + fontconfig + libwebp
# ===============================
# ===============================
# Stage 1: Builder
# ===============================
@yagop
yagop / OrionO6.md
Created February 2, 2026 02:03
Orion O6

Currently only 2 OS are available: BredOS and RadxaOS (recommended as BredOS lacks GPU acceleration)

On the Orion O6 with a live USB or other computer with access to the NVMe

wget https://github.com/radxa-build/radxa-orion-cix-p1/releases/download/rsdk-r1/radxa-orion-cix-p1_bookworm_gnome_r1.output_512.img.xz
xz -dc < /tmp/radxa-orion-cix-p1_bookworm_gnome_r1.output_512.img.xz | dd of=/dev/nvme0n1 bs=1024k status=progress