Skip to content

Instantly share code, notes, and snippets.

View Bonveio's full-sized avatar

Bonveio Abitona Bonveio

View GitHub Profile
@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 / 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 / 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 / mosh-alternative.md
Last active February 19, 2026 19:18
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