Skip to content

Instantly share code, notes, and snippets.

View omid's full-sized avatar
🌞

Omid Rad omid

🌞
View GitHub Profile
@omid
omid / check-unused-firmware.sh
Last active July 15, 2025 13:38
Script to Identify Unused linux-firmware-* Packages on Arch Linux (Use at your own risk)
#!/usr/bin/env bash
#set -x
# Help text for each firmware package
declare -A FW_HELP=(
[linux-firmware-radeon]="Firmware for ATI Radeon GPUs"
[linux-firmware-amdgpu]="Firmware for AMD Radeon GPUs"
[linux-firmware-intel]="Firmware for Intel graphics, WiFi, Bluetooth"
[linux-firmware-nvidia]="Firmware for NVIDIA GPUs"
[linux-firmware-broadcom]="Firmware for Broadcom and Cypress network adapters"
@omid
omid / Diesel PostgreSql Rust Types.md
Last active June 2, 2025 14:47
A comprehensive mapping of PostgreSQL, Diesel, and Rust types
PostgreSQL Type PostgreSQL Size Description Range Diesel Type Rust Type
Nullable Types nullable Nullable``
@trungnt13
trungnt13 / SSD_optimize_linux.sh
Last active September 27, 2025 02:40
Optimize performance for SSD (NVMe) on Linux
sudo cp /etc/fstab /etc/fstab.bak
# Eschewing Access Times
sudo nano /etc/fstab
# add this options, make sure they’re all separated by commas and no spaces.
noatime,nodiratime
# example: UUID=uuid_number / ext4 defaults,noatime,discard,errors=remount-ro 0 1A
# TRIM Fit
discard