Skip to content

Instantly share code, notes, and snippets.

@progzone122
progzone122 / en.md
Last active April 9, 2025 11:16
Easily connect Epson printers to Arch linux with the new escpr driver

Epson recently released official drivers for their printers for linux. Even very old printers can now be made to work in linux in two clicks!

Guide

  1. Install paru (or other AUR helper)
git clone https://aur.archlinux.org/paru.git && cd paru && makepkg -si
  1. Install package system-config-printer
@progzone122
progzone122 / fastboot_help.md
Created February 12, 2025 12:05 — forked from MrHallows/fastboot_help.md
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:
@progzone122
progzone122 / Installing PostMarket OS on Mi A2 Lite (xiaomi-daisy) [english].md
Last active February 23, 2025 15:56
Installing PostMarket OS on Mi A2 Lite (xiaomi-daisy)

Detailed Guide for Installing PostMarket OS on Xiaomi Mi A2 Lite (xiaomi-daisy)

Written with 💖 by DiabloSat

Prerequisites

  • The device bootloader must be unlocked.
  • platform-tools installed on your PC.

Preperation

It is recommended to flash the latest stock firmware before installing PostMarket OS

  1. Select your desktop environment and download the prebuilt images (example 24.06/sxmo-de-sway/20241127-1248): Xiaomi-daisy 24.06 prebuild images link
  2. Extract all archives, rename files, and move them to a separate directory for convenience
@progzone122
progzone122 / README.md
Created October 31, 2024 16:03
Capture USB traffic on linux (wireshark & usbmon) guide

Capture USB traffic on linux (wireshark & usbmon) guide

Installing wireshark

Install wireshark

sudo pacman -S wireshark-qt

Adding a user to a wireshark group

sudo usermod -aG wireshark $USER
@progzone122
progzone122 / fix.md
Created October 16, 2024 12:46
Fix for long launch of programs written in iced
@progzone122
progzone122 / clipboard.sh
Last active December 20, 2024 13:20
Fixing the wps-office clipboard in Linux on Wayland
#!/bin/bash
# Credits
# DiabloSat - https://github.com/progzone122
# Andrés Alberto - https://gist.github.com/andriandreo
while true; do
# Capture the current clipboard content
clipboard_content=$(wl-paste)
# Remove trailing newlines using sed
cleaned_content=$(echo "$clipboard_content" | sed ':a; /^$/{$d; N;}; /\n$/ba')