Skip to content

Instantly share code, notes, and snippets.

View Bonveio's full-sized avatar
Inactive

Bonveio Abitona Bonveio

Inactive
View GitHub Profile
@Bonveio
Bonveio / fetch-termux-packages.sh
Created September 17, 2025 05:54
A simple shell script to download and extract specific Termux (.deb) packages for multiple architectures. Useful for creating a local multi-arch repository.
#!/bin/sh
# A simple shell script to download and extract specific Termux (.deb) packages for multiple architectures.
# Configuration
base_url="https://packages.termux.dev/apt/termux-main/pool/main"
package_dirs="o/openssl/ o/openssl-static/ o/openssl-tool/ a/argp/ a/argp-static/ b/brotli/ p/pkg-config/"
architectures="aarch64 arm"
base_dir="/opt/d"
check_commands() {
@Bonveio
Bonveio / 00_my-termux-setup.md
Last active July 20, 2025 16:56
My own termux developer environment startup

Termux Environment Setup Script

This script automates the installation and configuration of several tools to enhance your Termux experience. It sets up the fish shell with Starship prompt, Macchina (a neofetch alternative), and the Helix editor.


Features

  • fish shell: A user-friendly and powerful shell.
  • Starship: A fast, customizable, and universal prompt.
@Bonveio
Bonveio / grub-update.sh
Created June 6, 2025 17:01
my custom grub-update script for dualboot Arch + Windows 10 MBR disk
#!/bin/bash
# Auto-detect and mount the Windows partition on /dev/sda, update GRUB, and run cleanup.
# Run as sudo.
DISK="/dev/sda"
TEMP_MNT="/mnt/temp"
TARGET_MNT="/mnt"
[ ! -d "$TEMP_MNT" ] && mkdir "$TEMP_MNT"
WIN_PART=""
@Bonveio
Bonveio / rmx2180.md
Last active October 26, 2025 05:31
RMX2180 optimization notes

Realme C15 (RMX2180) Optimization Notes

Requirements

  • Micro USB data cable
  • ADB-enabled computer (Windows/macOS/Linux/Raspberry Pi)
  • USB Debugging enabled on device

Note

Go to Settings > Additional settings > Developer options > Disable permission monitoring for WRITE_SECURE_SETTINGS error fix

@Bonveio
Bonveio / debian-droplet-12-to-13.md
Last active January 4, 2025 23:22
Upgrade Debian 12 to 13 notes (x64 DigitalOcean Droplet only)
root@droplet:~# cat /etc/apt/sources.list.d/debian.sources
Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian.list
#Suites: bookworm bookworm-updates bookworm-backports
Suites: trixie trixie-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
@Bonveio
Bonveio / archlinux-lxqt-tutorial.md
Last active October 10, 2025 06:00
ArchLinux + LXQt | Install instructions / Install manual / Install tutorial
@Bonveio
Bonveio / lxdialog.patch
Created August 29, 2024 18:48
Busybox @ master commit 371fe9f71d445d18be28c82a2a6d82115c8af19d patch for /busybox/scripts/kconfig/lxdialog/Makefile
--- scripts/kconfig/lxdialog/Makefile 2024-08-30 00:00:00.877509501 +0800
+++ scripts/kconfig/lxdialog/Makefile 2024-08-30 00:00:00.806515827 +0800
@@ -12,7 +12,7 @@
PHONY += dochecklxdialog
$(obj)/dochecklxdialog:
- $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES)
+ $(shell $(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES))
hostprogs-y := lxdialog
@Bonveio
Bonveio / cybree-debian-upgrade-script.md
Last active December 6, 2025 20:21
Cybree upgrade script (10 >> 11 >> 12 >> 13)

download script:

wget -O upgrade.sh 'https://gist.github.com/Bonveio/bb40b778b33ef06868c14c0240f25967/raw/upgrade.sh'

usage:

  • Debian 10 to 11 bash upgrade.sh 11
  • Debian 11 to 12 bash upgrade.sh 12
  • Debian 12 to 13 bash upgrade.sh 13
@Bonveio
Bonveio / socket.c
Last active November 1, 2021 01:23
Experimental OpenVPN v2.5+ bypass client big packet [patchfile]
--- src/openvpn/socket.c 2021-10-04 19:01:33.000000000 +0800
+++ src/openvpn/socket.c 2021-10-05 19:01:33.000000000 +0800
@@ -2778,8 +2777,0 @@
-
- if (sb->len < 1 || sb->len > sb->maxlen)
- {
- msg(M_WARN, "WARNING: Bad encapsulated packet length from peer (%d), which must be > 0 and <= %d -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]", sb->len, sb->maxlen);
- stream_buf_reset(sb);
- sb->error = true;
- return false;
@Bonveio
Bonveio / kex.patch
Created September 30, 2021 09:30
OpenSSH v8.7 kex.c patchfile
--- kex.c 2021-08-20 12:03:49.000000000 +0800
+++ kex.c 2021-08-21 12:03:49.000000000 +0800
@@ -1293,9 +1293,2 @@
}
- /* Do not accept lines before the SSH ident from a client */
- if (ssh->kex->server) {
- error_f("client sent invalid protocol identifier "
- "\"%.256s\"", cp);
- free(cp);
- goto invalid;