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 September 28, 2024 14:25
lasang.md

Recettes de lasang à la bolo

Quantité finale: 2 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 August 30, 2024 19:45
Cannelés

Cannelés

Curstiest cannel

Ingredients

  • 250g sugar
  • 100g wheat flour
  • 500mL milk
  • 50g butter
@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 / 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 / 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;
@JPenuchot
JPenuchot / pretty_printer.cpp
Created July 19, 2018 09:32
Example of C++ std::tuple pretty printer using parameter packs
#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
@JPenuchot
JPenuchot / HABILITIES.md
Created May 2, 2018 23:58 — forked from roblabla/HABILITIES.md
We believe in your habilities.

Muh Switch Keys

So you want to decrypt switch content ? Well, the good news is that all the tools required to do that are written up! The great news is, since this is crypto we're talking about, you'll have to find the keys. Yourself. Like it's easter.

So here you can find a template of the $HOME/.switch/prod.keys file that hactool uses to decrypt content. It contains all the SHA256 and location of the keys and seeds, so you can find them yourselves.

Note that all the seeds (the keys that end with _source) are used along with the master_key_## to derive an actual key. If you have somehow obtained the key without the seed, you can rename xxx_source to xxx_## (where ## is the master key number) and put your key there.

How the heck do I obtain dem keys ?

@JPenuchot
JPenuchot / CMakeLists.txt
Last active March 16, 2018 08:37
CMakeLists - Projet POA
cmake_minimum_required( VERSION 2.8.9 )
project( Proj LANGUAGES CXX )
# Compiler stuff
set( CMAKE_C_COMPILER /usr/bin/clang )
set( CMAKE_CXX_COMPILER /usr/bin/clang++ )
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O3" )