Skip to content

Instantly share code, notes, and snippets.

View souvikinator's full-sized avatar
🤯
building something cool!

Souvik Kar Mahapatra souvikinator

🤯
building something cool!
View GitHub Profile
@souvikinator
souvikinator / clean-up-arch-linux.md
Created July 14, 2024 09:52 — forked from rumansaleem/clean-up-arch-linux.md
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@souvikinator
souvikinator / postgres-cheatsheet.md
Created November 21, 2021 16:35 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)