Skip to content

Instantly share code, notes, and snippets.

View YektaDev's full-sized avatar
𝐼𝓃 𝓈𝑒𝒶𝓇𝒸𝒽 𝑜𝒻 𝓁𝒾𝑔𝒽𝓉

Ali Khaleqi Yekta YektaDev

𝐼𝓃 𝓈𝑒𝒶𝓇𝒸𝒽 𝑜𝒻 𝓁𝒾𝑔𝒽𝓉
View GitHub Profile
#!/bin/bash
# ----------------------------------------------------------------------------------------------------------------------
# docker_unload.sh - Unloads images from a tarball. Returns 0 if any images are removed or skipped, 1 otherwise.
# ----------------------------------------------------------------------------------------------------------------------
# MIT License - Ali Khaleqi Yekta (@YektaDev - https://yekta.dev)
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
# ----------------------------------------------------------------------------------------------------------------------
set -euo pipefail
@YektaDev
YektaDev / Assertion.ts
Last active April 4, 2025 17:34
A simple, type-safe assertion utility for JavaScript/TypeScript.
/*
* Assertion.ts - A simple, type-safe assertion utility for JavaScript/TypeScript.
* https://gist.github.com/YektaDev/aee5b9996f5418a84376c837975293c7
*
* The Assert class provides a robust set of methods to validate various data types, structures,
* and values. It simplifies runtime checks and ensures that the program behaves as expected by
* throwing detailed `AssertionError` exceptions when validation fails.
*
* ---
*
@YektaDev
YektaDev / Summary 3, 4, 5 - Computer Networking (A Top-down Approach).md
Last active November 3, 2023 03:48
A partial (and informal!) summary of chapters 3, 4, and 5 of "Computer Networking: A Top-down Approach" by Jim Kurose & Keith W. Ross
"Computer Networking: A Top-down Approach" by Jim Kurose & Keith W. Ross (8th edition)
A Partial (and Informal!) Summary of Chapters 3, 4, and 5
Ali Khaleqi Yekta - Jun 2023

📗 Chapter 3 - Transport Layer

Sockets are in App layer. When they reach Transport layer, it merges (multiplexes) all of them & adds its own header (headers are responsible to find the correct socket).