Skip to content

Instantly share code, notes, and snippets.

View torodebout's full-sized avatar
🎯
Focusing

Anas Douib torodebout

🎯
Focusing
View GitHub Profile
@torodebout
torodebout / postgres-cheatsheet.md
Created August 4, 2025 17:18 — 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)
@torodebout
torodebout / setup.md
Created April 3, 2022 01:08 — forked from ibqn/setup.md
Setup VSCode with Live Server and a Docker container

Setup VSCode with Live Server and a Docker container

In this I will shortly describe how to setup

I used a docker-compose.yml file although I only created one container with no other dependencies. This works with a regular Dockerfile as well.

@torodebout
torodebout / leacks_cheker_ex.c
Last active December 20, 2021 20:34 — forked from drrost/leacks_cheker_ex.c
Extended version of memory leaks checker. Shows the place where memory was allocated.
//
// Created by Rostyslav Druzhchenko on 05.09.2020.
//
// for the error 'RTLD_NEXT' undeclared or undefined
#define _GNU_SOURCE
#include <stdio.h>
#include <dlfcn.h>
#include <execinfo.h>
#include <string.h>
#include <stdlib.h>