Skip to content

Instantly share code, notes, and snippets.

View Thibb1's full-sized avatar
💻
Working from home

Thibault B. Thibb1

💻
Working from home
View GitHub Profile
Blocks = {
alphaBlocks: [
0,6,8,9,10,11,20,26,27,28,29,30,31,32,33,34,36,37,38,39,40,50,51,52,55,59,
64,65,66,69,71,75,76,78,79,81,83,90,92,93,94,95,96,101,102,
104,105,106,111,115,116,117,118,119,122,127,132,138,140,
141,142,144,145,149,150,151,154,157,160,165,166,167,171,175,176,177,178,
193,194,195,196,197,209,212,207,198,217,253
],
specialBlocks: [ // blocks that are not standard cubes
6,26,27,28,30,31,32,34,37,38,39,40,44,50,51,53,54,55,59,60,63,64,65,66,67,68,69,70,71,
@Thibb1
Thibb1 / install_criterion.sh
Last active June 13, 2025 14:06
Install criterion v2.4.1 on linux (fedora)
#!/usr/bin/env bash
VERSION="2.4.2"
URL="https://github.com/Snaipe/Criterion/releases/download/v${VERSION}/"
TARBALL="criterion-${VERSION}-linux-x86_64.tar.xz"
DIR="criterion-${VERSION}"
DST="/usr/local"
SUDO="/usr/bin/sudo"
if [ $UID -eq "0" ]; then
SUDO=""
@Thibb1
Thibb1 / ex01.c
Created January 18, 2022 20:25
Tester for Epitech Cppool d04pm
#include <stdio.h>
#include <stdlib.h>
#include "int_list.h"
static void populate_list(int_list_t *list_head)
{
int_list_add_elem_at_back(list_head, 1681692777);
int_list_add_elem_at_back(list_head, 1189641421);
int_list_add_elem_at_back(list_head, 846930886);
int_list_add_elem_at_back(list_head, 1804289383);
@Thibb1
Thibb1 / ex05.c
Created January 18, 2022 20:17
Tester for Epitech Cppool d04am
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void disp(const void *str)
{
printf(" %s", *(char **)str);
}
static int cmp(const void *a, const void *b)
@Thibb1
Thibb1 / ubuntu.sh
Last active April 6, 2022 09:36
Ubuntu Install Epitech
#!/usr/bin/env bash
clear
set -e
# BASH COLORS
green() { printf "\033[32m${1}\033[0m\n\n"; }
orange() { printf "\033[38;5;208m${1}\033[0m\n"; }
blue() { printf "\033[38;5;27m${1}\033[0m\n" ; }
purpl() { printf "\033[38;5;92m${1}\033[0m\n" ; }
@Thibb1
Thibb1 / mouli-antman.sh
Last active December 9, 2021 08:23
mouli Antman (place in bonus file)
#!/usr/bin/env bash
clear
set -e
cd ..
# BASH COLORS
red() { printf "\033[38;5;196m${1}\033[0m\n"; }
green() { printf "\033[32m${1}\033[0m\n\n"; }
orange() { printf "\033[38;5;208m${1}\033[0m\n"; }
blue() { printf "\033[38;5;27m${1}\033[0m\n" ; }
@Thibb1
Thibb1 / csfml.sh
Last active June 13, 2025 14:10
CSFML installer for Ubuntu. 🤖 tested on Lubuntu 20.04.1.
#!/usr/bin/env bash
clear
set -e
# BASH COLORS
green() { printf "\033[32m${1}\033[0m\n\n"; }
orange() { printf "\033[38;5;208m${1}\033[0m\n"; }
blue() { printf "\033[38;5;27m${1}\033[0m\n" ; }