Skip to content

Instantly share code, notes, and snippets.


Jules JPenuchot

View GitHub Profile
JPenuchot /
Last active Apr 3, 2021 — 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 /
Last active Nov 5, 2019
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 Jul 1, 2019
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 /
Last active Nov 14, 2018
Outils et galleries pour memelords
JPenuchot / main.cpp
Last active Jul 19, 2018
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 Jul 19, 2018
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
JPenuchot /
Created May 2, 2018 — forked from roblabla/
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 / CMakeLists.txt
Last active Mar 16, 2018
CMakeLists - Projet POA
View CMakeLists.txt
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++ )
JPenuchot /
Last active Feb 14, 2018
Explication d'un simplexe en une phase

Récap simplexe

On a un problème de maximisation :

Max f(x1, x2, x3) = 1 x1 + 2 x2 + 3 x3
| sc :    x1 +   x2 <= 5
|       2 x2 + 5 x3 <= 6
View ndi_dump.txt