Skip to content

Instantly share code, notes, and snippets.

@progzone122
progzone122 / en.md
Created May 14, 2025 05:00
Diesel with MySQL on Arch Linux: mysqlclient-sys v0.4.1 build error

Problem

You're trying to compile a program after adding diesel with the mysql feature, but you're getting an error:

error: failed to run custom build command for `mysqlclient-sys v0.4.1`

Caused by:
  process didn't exit successfully: `/home/diablo/stopfake/backend/target/debug/build/mysqlclient-sys-220ada85d6c3a9cb/build-script-build` (exit status: 101)
  --- stdout
  cargo::rerun-if-env-changed=MYSQLCLIENT_VERSION
  cargo::rerun-if-env-changed=MYSQLCLIENT_INCLUDE_DIR
@progzone122
progzone122 / en.md
Last active May 25, 2025 12:00
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 / Installing PostMarket OS on Mi A2 Lite (xiaomi-daisy) [english].md
Last active May 11, 2025 18:53
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
✨ Fixing Touchscreen Issues in TWRP ✨
Many developers are surprised to find that touch functionality doesn’t work after building TWRP. This common issue often relates to three key areas: firmware, kernel modules, and permissions. Let’s dive into how to troubleshoot and fix this! 🚀
🔧 **1. Firmware: The Backbone of Touch Functionality**
To get the touchscreen working, you must ensure the correct firmware is placed in:
```
recovery/root/vendor/firmware
```
📂 **Steps to Back Up Your Vendor Firmware**
@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')
@Joao-Peterson
Joao-Peterson / gmk67-manual.md
Last active May 31, 2025 12:36
GMK67 manual (English)
@sadiqsalau
sadiqsalau / mtk-partitions.txt
Last active May 28, 2025 20:55
MTK Partitions
MTK platform partition meaning
#Pre-loader
Pre-loader image
Handles all the download and secure boot procedure
#DSP_BL
DSP Boot Loader
#MBR、EBR1、EBR2
Ext4 file system partition index table
@sergey-glushakov
sergey-glushakov / install_zsh.md
Last active May 8, 2025 19:57
Установка ZSH на Linux

Установка ZSH в Linux

  1. Чтобы установить zsh в Debian 11, запустите: $ sudo apt install zsh

  2. Чтобы проверить установку zsh: $ which zsh /usr/bin/zsh Из выходных данных видно, что zsh успешно установлен в /usr/bin/zsh.

  3. Изменить текущую оболочку