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
@Thibb1
Thibb1 / install_criterion.sh
Created December 8, 2022 18:55
Install criterion v2.4.1 on linux (fedora)
#!/usr/bin/env bash
URL="https://github.com/Snaipe/Criterion/releases/download/v2.4.1/"
TARBALL="criterion-2.4.1-linux-x86_64.tar.xz"
DIR="criterion-2.4.1"
DST="/usr/local"
SUDO="/usr/bin/sudo"
if [ $UID -eq "0" ]; then
SUDO=""
echo "[no sudo for root]"
@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 April 29, 2024 08:13
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" ; }