Skip to content

Instantly share code, notes, and snippets.

View hugoarnal's full-sized avatar

Hugo ARNAL hugoarnal

View GitHub Profile
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active August 19, 2026 15:49
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active August 19, 2026 12:52
set -e, -u, -o, -x pipefail explanation
@scmx
scmx / using-details-summary-github.md
Last active July 24, 2026 00:48
Using <details> <summary> expandable content on GitHub with Markdown #details #summary #markdown #gfm #html

How to use <details> <summary> expandable content on GitHub with Markdown

Firstly, what is <details> <summary>?

The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the <summary> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.

Example

@Sigmanificient
Sigmanificient / README.md
Last active May 21, 2025 20:23
Epitech Coding Style Checker on Arch GNU/Linux

Running the coding style on Arch

In order to run the Epitech coding style checker natively, you will need to compile the vera binary.

I. Clone the vera-banana repo from Epitech

The repo is private, but you can access it using your ssh key

git clone git@github.com:Epitech/banana-vera.git
@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active August 6, 2026 17:25
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

// $ cc -o checker checker.c
// $ ./checker
// $ ffmpeg -i output-%02d.ppm -r 60 output.mp4
#include <stdio.h>
int main()
{
char buf[256];
for (int i = 0; i < 60; ++i) {
snprintf(buf, sizeof(buf), "output-%02d.ppm", i);
@rexim
rexim / arr.c
Last active July 12, 2026 15:50
Source code from the "Insane Shadow Data Trick in C" YouTube video https://www.youtube.com/watch?v=gtk3RZHwJUA
// cc -o arr arr.c && ./arr
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct {
size_t count;
size_t capacity;
} Header;