Skip to content

Instantly share code, notes, and snippets.

View eissapk's full-sized avatar
⌨️
Continuity is the key

Eissa Saber eissapk

⌨️
Continuity is the key
View GitHub Profile
@eissapk
eissapk / pick_emoji.sh
Created November 13, 2024 22:53 — forked from kylecarbs/pick_emoji.sh
Emoji Picker for Linux
# ✨ Emoji Picker for Linux ✨
# Copies emojis to your clipboard on select.
#
# Install the Apple Color Emoji (https://github.com/samuelngs/apple-emoji-linux) font for Linux to get the iconic emoji style.
# Uses rofi as dmenu was unable to render emojis:
# https://gitlab.freedesktop.org/xorg/lib/libxft/-/issues/6
#!/bin/bash
set -e
@eissapk
eissapk / postgres-cheatsheet.md
Created November 23, 2024 02:08 — 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)