Skip to content

Instantly share code, notes, and snippets.

View seujorgenochurras's full-sized avatar

Jorge Seu Churrasco com seujorgenochurras

  • rua dos bobos nº 0
View GitHub Profile
@seujorgenochurras
seujorgenochurras / killBloatware.sh
Last active January 25, 2024 20:52
Kills useless services that might be using your useful RAM
#!/usr/bin/env zsh
#WARNING THIS MIGHT BREAK SOMETHING OR CORRUPT FILES
#I HAVEN'T DONE RESEARCH ON ANY OF THOSE APPS, SO I'M NOT EVEN SURE WHAT THEY DO
bloatwareNames="package|io.elementary|mysqld|djs|nautilus|evolution|tracker|execsn|ibus|hidpi|\(sd-|cups|flatpak-por|dotnet"
bloatwareIds=$(ps -TA | grep -Po "[0-9]{3,} (?=(\?|p).*(?=($bloatwareNames)))" | tr -d '\n')
sudo kill $(echo $bloatwareIds)