Skip to content

Instantly share code, notes, and snippets.

View JPenuchot's full-sized avatar

Jules JPenuchot

View GitHub Profile
JPenuchot /
Last active March 8, 2023 16:25
Poulet adobo
JPenuchot / cannelé
Last active December 13, 2022 10:59
View cannelé


Curstiest cannel


  • 250g sugar
  • 100g wheat flour
  • 500mL milk
  • 50g butter
JPenuchot / .zshrc
Last active July 8, 2021 04:39
~/.config/i3/config for my Dell XPS 13 HiDPI running on Solus
View .zshrc
# 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
JPenuchot /
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 iwctl for wi-fi as of today.

Base filesystem

JPenuchot / bb.cpp
Created April 13, 2017 21:32
C++ implementation of the Branch & Bound algorithm
View bb.cpp
#include <iostream>
#include <limits>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
using namespace std;
#define TABSIZE 4
JPenuchot /
Last active November 5, 2019 10:50
clang-metaprogramming build script
git clone llvm-project
cd llvm-project
git checkout feature/metaprogramming
cd ..
mkdir -p build
cd build
JPenuchot / Corefile
Last active July 1, 2019 01:58
Minecraft Bedrock DNS redirection to connect to private servers from consoles (taken from
View Corefile
. {
# DNS rewriting method (to connect using hostnames)
#rewrite name exact <HOSTNAME>
# DNS host method (to connect using IP addresses)
hosts {
JPenuchot / CMakeLists.txt
Last active October 2, 2018 13:21
CMakeLists.tkt for Christian Jacquemin's OpenGL course at, 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)
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8.9)
find_package(PkgConfig REQUIRED)
# Adding compiler optimizations
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -march=native")
JPenuchot / main.cpp
Last active July 19, 2018 19:24
Fully optimized mean function using xsimd
View main.cpp
#include <vector>
#include <numeric>
#include <utility>
#include <iostream>
#include <xsimd/xsimd.hpp>
using namespace std;
namespace xs = xsimd;
JPenuchot / pretty_printer.cpp
Created July 19, 2018 09:32
Example of C++ std::tuple pretty printer using parameter packs
View pretty_printer.cpp
#include <tuple>
#include <iostream>
int main()
// Creates a tuple<float, int, std::string> object
auto tup = std::make_tuple(1.f, 10, "Hello !");
// Apply the lambda with the members
// of the tuple as arguments