Skip to content

Instantly share code, notes, and snippets.

View ljufa's full-sized avatar

Dragan Ljubojevic ljufa

View GitHub Profile
@ljufa
ljufa / ssdtrim.md
Last active March 17, 2026 00:05
Fix Severe SSD Write Speed Degradation on Pop!_OS / Linux (LUKS + LVM)

Fix Severe SSD Write Speed Degradation on Pop!_OS / Linux (LUKS + LVM)

The Symptom

Your Linux desktop (especially Pop!_OS or Ubuntu) randomly freezes under heavy write loads. Browsers lock up when downloading files, IDEs (like IntelliJ or VS Code) stutter during indexing, and compiling code brings the system to a halt.

Before You Start: Benchmark Your Drive

Before applying this fix, test your raw SSD write speed. We will write a 5GB file using direct I/O to bypass your RAM cache and measure the actual silicon speed.

Run this command in your terminal:

@ljufa
ljufa / Makefile
Created July 6, 2018 07:36
Makefile for kubernetes/helm app development. Go example .
TAG ?= LATEST
IMAGE ?= testapp # your app name
DOCKER_REGISTRY ?= localhost:5000 # docker registry
NAMESPACE_NAME ?= default # namespace
PREFIX ?= $(DOCKER_REGISTRY)/$(IMAGE)
SELECTOR ?= release=$(IMAGE) # change this
HELMARGS ?= # for debugging pass `--debug --dry-run`
localclean:
rm -rf ./build/*