Free Palestine πŸ‡΅πŸ‡Έ β€” stand for humanity, #SAVEGAZA
mek.dev

Cheat Sheet

Terminal commands I reach for constantly

Misc

Stopping and Removing All Containers

docker ps -aq | xargs docker stop | xargs docker rm

Kill Port 3000 🀷🏻

Because sometimes it’s just not working

sudo kill -9 $(sudo lsof -t -i:3000)

Cleaning Up node_modules in Specific Directory

When you have lots of npm projects in a directory, you can use this to clean up all the node_modules

 npx npkill -d <directory>
 npx npkill -d .

Supabase

Fetch changes from Production to Local

supabase db diff --linked --file sync

Flutter

Run Build Runner with Delete Conflicts

dart run build_runner build --delete-conflicting-outputs

← All writing