Skip to content

Instantly share code, notes, and snippets.

View MangaD's full-sized avatar
📚
studying

David Gonçalves MangaD

📚
studying
View GitHub Profile
@MangaD
MangaD / cgroups.md
Last active February 27, 2026 13:50
What Are **cgroups** (Control Groups)?

What Are cgroups (Control Groups)?

CC0

Disclaimer: ChatGPT generated document.

cgroups — short for control groups — are a Linux kernel feature that lets you limit, prioritize, account for, and isolate resource usage (CPU, memory, I/O, etc.) of processes.

They are one of the core building blocks of modern container systems like Docker and Kubernetes.

@MangaD
MangaD / systemd.md
Created February 27, 2026 13:48
systemd — Everything You Need to Know

systemd — Everything You Need to Know

CC0

Disclaimer: ChatGPT generated document.

systemd is the dominant init system and service manager on modern Linux distributions. It is much more than “just PID 1” — it is a full userspace platform that manages:

  • Boot process
@MangaD
MangaD / macos_from_win_and_linux.md
Last active February 27, 2026 13:13
macOS Mastery for Windows & Linux Engineers — From User to System-Level Pro

macOS Mastery for Windows & Linux Engineers — From User to System-Level Pro

CC0

Disclaimer: ChatGPT generated document.

Great question — especially given your background.

Coming from Windows 11 + Linux as a software engineer, you’re in the perfect position to really understand macOS — not just use it.

@MangaD
MangaD / cpp_getter_setter_naming_conventions.md
Last active February 12, 2026 14:24
C++ Getter and Setter Naming Conventions

C++ Getter and Setter Naming Conventions

CC0

Disclaimer: ChatGPT generated document.

Typical C++ Convention

Most C++ codebases use one of these patterns:

@MangaD
MangaD / Entropy_Lehman-Laws_Conway-Law.md
Last active January 16, 2026 04:52
Entropy, Lehman’s Laws of Software Evolution, and Conway’s Law

Entropy

CC0

Disclaimer: ChatGPT generated document.

“Entropy” has a deep meaning in physics and information theory, and the idea has been borrowed into software engineering, systems design, and even project/organizational dynamics. I’ll unpack it from first principles, connect the dots rigorously, and show how the metaphor works in codebases, architectures, and teams.


@MangaD
MangaD / SecurityCourse.md
Created January 15, 2026 17:32
🔒 THE COMPLETE SECURITY COURSE

🔒 THE COMPLETE SECURITY COURSE (FULL EDITION)

CC0

Disclaimer: ChatGPT generated document.

Everything from cryptographic primitives → protocols → system design → modern security architecture

Here is the full, long-form, structured, end-to-end course on all major security concepts, from cryptography to TLS/IPsec/QUIC/WireGuard, to authentication, E2EE, hardware security, network design, protocols, threat modeling, and attacker mindset. This is a full multi-module curriculum, written at a graduate / security engineer level, but without assuming prior crypto expertise.

@MangaD
MangaD / VibeCoding.md
Created January 14, 2026 18:21
Vibe coding

Vibe coding

CC0

Disclaimer: ChatGPT generated document.

“Vibe coding” is a phrase that didn’t originally come from formal software development, but from online culture (YouTube, Twitch, TikTok, Discord, lo-fi streams, etc). Over the past few years it’s evolved into a recognizable micro-culture and workflow pattern with surprisingly deep psychological, social, and productivity dynamics. Since you asked for everything, here’s a comprehensive breakdown that treats it seriously:


@MangaD
MangaD / endianness_alignment_padding.md
Created January 4, 2026 16:52
Endianness, Alignment, and Padding

Endianness, Alignment, and Padding

A Systems-Level Deep Dive for C and C++ Developers

CC0

Disclaimer: ChatGPT generated document.

Below is a full, deep, and comprehensive article on endianness, alignment, and padding, written from a systems / C++ perspective and aimed at someone who already thinks about ABI, performance, and portability.

@MangaD
MangaD / cpp_unions.md
Last active January 4, 2026 01:13
Deep Dive into Unions in C and C++

Deep Dive into Unions in C and C++

CC0

Disclaimer: Grok generated document.

Unions are a fundamental feature in both C and C++ for defining data types that can store different types of data in the same memory location. They are particularly useful for memory optimization, type punning (with caveats), and implementing variant-like structures. This guide covers everything from basics to advanced topics, including syntax, semantics, differences between C and C++, pitfalls, use cases, and modern alternatives. I'll use code examples, tables for comparisons, and explanations grounded in language standards (up to C23 and C++23 as of 2025).

1. Introduction to Unions

@MangaD
MangaD / cpp_internal_linkage.md
Created December 27, 2025 19:20
Why C++ Has `static` and Unnamed Namespaces: The Purpose of Internal Linkage

Why C++ Has static and Unnamed Namespaces: The Purpose of Internal Linkage

CC0

Disclaimer: ChatGPT generated document.

C++ offers two closely related mechanisms—static at namespace scope and unnamed namespaces—to control internal linkage. While they often appear simple or even redundant, they exist to solve fundamental problems in large-scale, multi-file programs.

This article explains what internal linkage is, why it exists, and why unnamed namespaces are the modern, preferred tool.