Skip to content

Instantly share code, notes, and snippets.

View Bonveio's full-sized avatar

Bonveio Abitona Bonveio

View GitHub Profile
@Bonveio
Bonveio / xray-bin-updater.sh
Last active August 9, 2026 13:07
xray-bin AUR package PKGBUILD and .SRCINFO updater script to test latest Xray-core upstream releases early
#!/bin/bash
# Automatically update xray-bin PKGBUILD and .SRCINFO to the latest upstream release
# To use:
# $ rm -rf xray-bin # optional cmd
# $ git clone --branch xray-bin --single-branch --depth 1 https://github.com/archlinux/aur.git xray-bin
# $ cd xray-bin
# $ curl -kLO https://gist.githubusercontent.com/Bonveio/99f7e54c99ee640ec898e66f601266c7/raw/xray-bin-updater.sh
# $ bash xray-bin-updater.sh
# $ makepkg -si --noconfirm
set -euo pipefail
@Bonveio
Bonveio / mosh-alternative.md
Last active July 19, 2026 19:16
trzsz-ssh as mosh replacement

Mosh Alternative: trzsz-ssh (tssh + tsshd)

This document describes how to use trzsz-ssh (tssh + tsshd) as a modern Mosh-like alternative with support for:

  • SSH-compatible syntax
  • Local and remote port forwarding (-L, -R, -D)
  • UDP-based roaming connections (#!! UdpMode QUIC/KCP)
  • Session migration when your IP changes (ideal for LTE / mobile networks)
  • High throughput compared to classic TCP SSH
  • Drop-in replacement for OpenSSH client workflows
@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 January 6, 2026 00:53
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 August 22, 2026 00:47
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