Skip to content

Instantly share code, notes, and snippets.

View Sigmanificient's full-sized avatar
🎲
Continuing random projets

Yohann Boniface Sigmanificient

🎲
Continuing random projets
View GitHub Profile
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.service import Service
URL = "https://www.google.com"
def main():
options = Options()
options.headless = True
@Sigmanificient
Sigmanificient / Makefile
Created February 10, 2023 11:33
Check a commmand to exist within a makefile
# Example use case
include check_cmd.mk
all: $(VENV)
VENV=VENV
$(VENV):
$(call CHECK_CMD, python3)
@ python3 -m venv $@
@Sigmanificient
Sigmanificient / Dockerfile
Created February 12, 2023 23:00
Arch - CSFML / Criterion / NCURSES - Docker for epitech
FROM archlinux:base-devel
RUN pacman -Syu meson ninja cmake csfml curl ncurses --noconfirm --needed
RUN curl -LO https://github.com/Snaipe/Criterion/releases/download/v2.4.1/criterion-2.4.1.tar.xz
RUN tar -xf criterion-2.4.1.tar.xz
RUN cd criterion-2.4.1 && arch-meson -Db_pie=false -Db_lto=false build
RUN cd criterion-2.4.1 && meson compile -C build -v --ninja-args=-n,-v,-d,explain
{ pkgs ? import <nixpkgs> { }, ... }:
pkgs.mkShell {
nativeBuildInputs = [
(pkgs.callPackage vera.nix { })
pkgs.criterion
pkgs.gnumake
pkgs.gcc
pkgs.gcovr
pkgs.valgrind
];
@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 [email protected]:Epitech/banana-vera.git
@Sigmanificient
Sigmanificient / builtin_func_middleware.py
Created June 14, 2023 22:03
Add a middleware to a builtin function
from functools import wraps
def builtin_func_middleware(original):
import builtins
def wrapper(func):
@wraps(original)
def wrapped(*args, **kwargs):
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
import vera_wrapper as vera
# Replace vera with the wrapper only for the typechecker
# at runtime, the vera_wrapper doesn't exists
else:
import vera
@Sigmanificient
Sigmanificient / kitty.conf
Created September 9, 2023 13:29
kitty conf generated
# Generated by Home Manager.
# See https://sw.kovidgoyal.net/kitty/conf.html
font_family JetbrainsMono Nerd Font
font_size 9
# Shell integration is sourced and configured manually
shell_integration no-rc enabled
active_tab_background #8B8AF1
i̷ͧ́̇̽̂̈̇ͨ͗͛͂ͬ̈́͌͊͆̽̆͊͋̒͊̾̃̅͊ͭͭ̋͂̇̒ͥ̓̍ͨ̍̑̈́̒ͩ̆͆͊̐̾͑̽́͒ͦͩͮ̐ͨ̒̓̈̊͐̂͊̚̚̚̕͏̸̷̴̴̷̸̸̵̧̨̢̡̨̛́́͘͢͡͠͝͏̵̷̶̷̸̷̷̶̢̧̢̢̡̡̧̛̀̀́͘͘͘̕͘͘͟͢͜͟͡͝͡͞͝͞͞͝͠͏̶̵̨̢́͏͞͏͏̛͕̳͍̮̠̘̣̬̜͍̹͖̳͙̮̪̝̗͕͍̫̼̱̙̲͍̠̹̠̝̭̠̟̟̱̠͇̟̜̩̞͚̮̗̺͎͚̮̬͇̪͖̺͈̫̮͍͎͎̞͈̦̤̤̟̥̰̗̩͈̼͉̟̣͕̪̼͍̫
@Sigmanificient
Sigmanificient / confusion.c
Created January 26, 2024 20:34
Stack hack
#include <stdio.h>
static char *S[] = { "Hello ", "world!\n" };
static
void print_me(int kek, const char p[static sizeof printf])
{
(void)p;
(**((void (**)(char *, char *))
((&kek - sizeof kek) + 1)))