Skip to content

Instantly share code, notes, and snippets.

@hkfuertes
hkfuertes / TWRP Enable ADB with Keys.md
Last active December 5, 2024 20:50 — forked from varhub/Android - Enable ADB from recovery.md
TWRP Enable ADB with Keys

TWRP Enable ADB with Keys

To enable adb debuging from recovery (TWRP):

adb shell

# Data related changes
twrp mount data
mkdir /data/property
echo -n 'mtp,adb' > /data/property/persist.sys.usb.config
@hkfuertes
hkfuertes / from_telegram.md
Last active March 28, 2025 17:05
TWRP + SCRCPY Fire Stick TV Configuration for local development

Telegram Channel: t.me/amazon_oss

Install

adb shell twrp wipe 
adb shell twrp cache
adb shell twrp system
adb shell twrp dalvik
adb push ROM.zip /sdcard/
adb shell twrp install /scard/ROM.zip
@hkfuertes
hkfuertes / proxmox_alpine_lxc_ollama_igpu.md
Last active March 27, 2025 17:30
Alpine LXC Container with iGPU Ollama Server on Proxmox

How to setup an LXC container with AMD iGPU (Ryzen 7 5800H) passthrougth for Ollama in Proxmox

Proxmox

First we need to install the Alpine LXC, the easiest way is to use Proxmox Helper scripts: https://tteck.github.io/Proxmox/

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/alpine.sh)"

I would install in "advance" mode and be generous with the resources (8-16 cores, 16G ram, 128GB disk)

How to setup an LXC container with docker and calibre/web in Proxmox

Proxmox

First we need to install the Alpine LXC, the easiest way is to use Proxmox Helper scripts: https://tteck.github.io/Proxmox/

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/alpine.sh)"

I would install in "advance" mode and be generous with the resources (4 cores, 2G ram, 8GB disk)

How to setup an LXC container with docker and amule in Proxmox

Proxmox

First we need to install the Alpine LXC, the easiest way is to use Proxmox Helper scripts: https://tteck.github.io/Proxmox/

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/alpine.sh)"

I would install in "advance" mode and be generous with the resources (4 cores, 2G ram, 8GB disk)

Simple steps to use with https://firmware-selector.openwrt.org/ to generate an OpenWrt image for Raspberrypi with Wifi enabled and network over usb (zeros, 4 and 3a).

Packages:

... kmod-usb-gadget kmod-usb-gadget-eth kmod-usb-dwc2 parted losetup resize2fs

uci-defaults:

# Change to not default network
@hkfuertes
hkfuertes / openwrt_tailscale_updated.md
Last active March 26, 2025 11:29
Guide to install latest version of tailscale on OpenWRT

Prerequisites

Tailscale is a heavy program, you most likely need to configure ex_root to be able to install it.

https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

Installation

  VERSION=1.2.3 # Version as of Nov 6 2024
  wget -O luci-app-tailscale.ipk https://github.com/asvow/luci-app-tailscale/releases/download/v${VERSION}/luci-app-tailscale_${VERSION}_all.ipk
  opkg update
 opkg install ./luci-app-tailscale.ipk

Build the Image

Simple steps to use with https://firmware-selector.openwrt.org to generate an OpenWrt image for Raspberrypi with Wifi enabled and network over usb (g_ether).

Packages:

# USB Gadget over USB-C
kmod-usb-gadget kmod-usb-gadget-eth kmod-usb-dwc2

# Expand root filesystem to whole sdcard
parted losetup resize2fs