Skip to content

Instantly share code, notes, and snippets.

View Pierstoval's full-sized avatar
🌒

Alex Rock Pierstoval

🌒
View GitHub Profile

Friendly Domain Driven Design manifesto

(this is only my views, not a global thing, so if I'm wrong, maybe we are both either wrong or right for someone else anyway, so it's fine, don't need to make a fuss out of harmless opinions)

For experienced DDD architects: why?

I want more people to implement DDD, but in a more friendly way.

The notions between DDD and all others "good programming practices" are widely accessible nowadays, and some devs implement "pure DDD", or "pure hexagonal architecture" and so on.

// NOTE: the website must be in "English" to work.
// Reposts ("Posts" tab)
els = [...document.querySelectorAll('[data-testid="repostBtn"] svg')].filter(e => e?.style?.color?.match(179)).map(e => e.parentElement);
(async function () {
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
#!/bin/bash
pnpx sv create --template=minimal --types=ts --add sveltekit-adapter="adapter:static" --add mdsvex --install pnpm my-app
@Pierstoval
Pierstoval / Git_Rebase_Branches_Issue.md
Last active September 22, 2025 18:14
I've got a lot of issues when rebasing tons of branches...

Issue when rebasing lots of branches with conflicts

Working context

Let's imagine I have this git graph:

(fig 1)

* 9e5d9b3 - (HEAD -> branch10) Commit 10
* 3e0a94e - (branch9) Commit 9
@Pierstoval
Pierstoval / Debian_starter.md
Last active May 11, 2026 13:41
Small script to initiate a server, like from a Docker container, or a VPS

Debian Starter

This repo contains a script that installs some basic tools and packages on a fresh Debian installation.

How to use

Pre-requisites: sudo, curl or wget

This script is meant to be run on a fresh Debian installation (tested on 12-Bookworm and 13-Trixie)

_TITLE := "\033[32m[%s]\033[0m %s\n"
_ERROR := "\033[31m[%s]\033[0m %s\n"
obliterate:
@printf $(_ERROR) "WARNING" "This will remove EVERYTHING and result into a setup similar to a fresh \"git clone\"."
@printf $(_TITLE) "Project" "Stopping & deleting all containers, volumes, etc."
@docker-compose down --volumes --remove-orphans --rmi all
@Pierstoval
Pierstoval / full-reset.Makefile
Last active September 6, 2022 20:39
Reset your entire application securely from a Makefile
#
# When you run "make full-reset", you see a warning message telling you to
# re-run the command with an environment variable if you're sure.
#
# So to *actually* execute the command, you have to run "make -e RESET=1 full-reset".
# Feel free to change the "resetting" scripts as you want.
#
# These are helper vars to use to have a nicer display for messages
_TITLE := "\033[32m[%s]\033[0m %s\n" # Green text
@Pierstoval
Pierstoval / confirm.Makefile
Last active May 20, 2026 12:09
"confirm" action for your Makefile
# To use the "confirm" target inside another target,
# use the " if $(MAKE) -s confirm ; " syntax.
mycommand:
@if $(MAKE) -s confirm ; then \
execute_your_command_here ; \
fi
.PHONY: mycommand
# The CI environment variable can be set to a non-empty string,

List of acronyms used in programming

Acronym Definition URLs
SOLID principles : https://en.wikipedia.org/wiki/SOLID
• SRP Single Responsibility Principle
• OCP Open/Closed principle
• LSP Liskov Substitution Principle (based on Barbara Liskov's work in programming)
• ISP Interface Segregation Principle (Can conflict with "ISP - Internet Service Provider", check the context)
• DIP Dependency Inversion Principle
@Pierstoval
Pierstoval / Makefile
Last active March 2, 2021 14:38
"Check requirements" command for your Makefile
# Use it like this:
#
# $ printf $(_TITLE) "Something in green" "The message"
#
# This will output something like this:
#
# [Something in green] The message
#
# (of course, with proper colors)
_TITLE := "\033[32m[%s]\033[0m %s\n" # Green text