Skip to content

Instantly share code, notes, and snippets.

View thanhlexyz's full-sized avatar

Thanh Le thanhlexyz

View GitHub Profile
@thanhlexyz
thanhlexyz / autoremove.sh
Created May 10, 2026 00:40
Remove orphaned unused packages in Arch Linux
pacman -Qqd | pacman -Rsu --print -
@thanhlexyz
thanhlexyz / makefile
Created May 10, 2026 00:20
Makefile to compile latex document locally
MAIN_FILE = main
PDF_VIEWER = okular
all: pdf view
compile:
pdflatex $(MAIN_FILE) # > /dev/null 2>&1
biber:
bibtex $(MAIN_FILE) # > /dev/null 2>&1
clean:
rm -f *.aux *.bbl *.blg *.log *.out *.toc *.lof *.lot *.acn *.bcf *.glo *.ist *.nav *.run.xml *.snm
view:
@thanhlexyz
thanhlexyz / fix-pacman-gpg.sh
Last active May 10, 2026 00:45
Fix broken pacman gpg
sudo rm -rf /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman -S --needed archlinux-keyring
sudo pacman-key --refresh-keys
sudo pacman -Syu
yay -Scc
yay -Syu