Skip to content

Instantly share code, notes, and snippets.

View JPenuchot's full-sized avatar
🎧
https://ruffcutz.bandcamp.com/track/metaprogramming-pt-2

Jules JPenuchot

🎧
https://ruffcutz.bandcamp.com/track/metaprogramming-pt-2
View GitHub Profile
@JPenuchot
JPenuchot / lasang.md
Last active February 29, 2024 12:13
lasang.md

Recettes de lasang à la bolo

Quantité finale: 3 petits plats de 6 parts chacun

La bolo

  • Au début je fais revenir un oignon émincé avec une gousse d'ail pour les faire dorer,
  • au bout de 10~20mn j'ajoute 800g de hachis de boeuf avec un oignon coupé plus grossièrement que je laisse cuire un moment,
  • j'y mets du rouge (25cL) pour le gout et des champis pour gout + texture,
  • après y'a 2 conserves de tomates pelées qui y passent avec un pot de concentré de tomates,
@JPenuchot
JPenuchot / poulet-adobo.md
Last active March 8, 2023 16:25
Poulet adobo
@JPenuchot
JPenuchot / cannelés.md
Last active December 13, 2022 10:59
Cannelés

Cannelés

Curstiest cannel

Ingredients

  • 250g sugar
  • 100g wheat flour
  • 500mL milk
  • 50g butter
@JPenuchot
JPenuchot / .zshrc
Last active July 8, 2021 04:39
~/.config/i3/config for my Dell XPS 13 HiDPI running on Solus
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:/home/jpenuchot/node_modules/.bin:$HOME/.cargo/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@JPenuchot
JPenuchot / arch-linux-install.md
Last active April 3, 2021 12:11 — forked from mattiaslundberg/arch-linux-install
Arch install. Up-to-date.

Arch install. Up-to-date.

Simple instructions for an Arch install with encrypted root partition. Bootloader and kernel partitions aren't encrypted.

Network setup

Do whatever is necessary to be able to ping 1.1.1.1. iwctl for wi-fi as of today.

Base filesystem

@JPenuchot
JPenuchot / bb.cpp
Created April 13, 2017 21:32
C++ implementation of the Branch & Bound algorithm
#include <iostream>
#include <limits>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
using namespace std;
#define TABSIZE 4
@JPenuchot
JPenuchot / build.sh
Last active November 5, 2019 10:50
clang-metaprogramming build script
#!/bin/sh
git clone https://gitlab.com/lock3/clang.git llvm-project
cd llvm-project
git checkout feature/metaprogramming
cd ..
mkdir -p build
cd build
@JPenuchot
JPenuchot / Corefile
Last active July 1, 2019 01:58
Minecraft Bedrock DNS redirection to connect to private servers from consoles (taken from https://www.reddit.com/r/MCPE/comments/a01tq8/bedrock_dedicated_server_for_the_switch/)
. {
# DNS rewriting method (to connect using hostnames)
#rewrite name exact mco.lbsg.net <HOSTNAME>
# DNS host method (to connect using IP addresses)
hosts {
<IP> mco.lbsg.net
fallthrough
}
@JPenuchot
JPenuchot / CMakeLists.txt
Last active October 2, 2018 13:21
CMakeLists.tkt for Christian Jacquemin's OpenGL course at https://perso.limsi.fr/jacquemi/OGL/, tested on Arch Linux (Previous versions were tested on Solus and MacOS, you might want to try them if this one doesn't work on your system)
cmake_minimum_required(VERSION 2.8.9)
project(prog)
find_package(PkgConfig REQUIRED)
# Adding compiler optimizations
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -march=native")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG")
@JPenuchot
JPenuchot / main.cpp
Last active July 19, 2018 19:24
Fully optimized mean function using xsimd
#include <vector>
#include <numeric>
#include <utility>
#include <iostream>
#include <xsimd/xsimd.hpp>
using namespace std;
namespace xs = xsimd;