Skip to content

Instantly share code, notes, and snippets.

View JPenuchot's full-sized avatar

Jules JPenuchot

View GitHub Profile
davidedmundson /
Last active February 5, 2024 20:39
Run plasma from within gamescope
# Remove the performance overlay, it meddles with some tasks
## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper
## whilst being launched by plasma-session
mkdir $XDG_RUNTIME_DIR/nested_plasma -p
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper
thalamus / ArchLinuxARM-M1
Last active February 15, 2024 00:31
How to boot Arch Linux ARM in QEMU (patched for M1)
View ArchLinuxARM-M1
* This document is provided to the public domain under the
* terms of the Creative Commons CC0 public domain license
How to boot Arch Linux ARM in QEMU (patched for M1)
QEMU - patched for M1 processors - patches:
roblabla /
Last active December 18, 2023 02:28
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 ?

rverton / cowroot.c
Created October 21, 2016 14:06
CVE-2016-5195 (DirtyCow) Local Root PoC
View cowroot.c
* (un)comment correct payload first (x86 or x64)!
* $ gcc cowroot.c -o cowroot -pthread
* $ ./cowroot
* DirtyCow root privilege escalation
* Backing up /usr/bin/passwd.. to /tmp/bak
* Size of binary: 57048
* Racing, this may take a while..
* /usr/bin/passwd overwritten
patriciogonzalezvivo /
Last active February 20, 2024 18:22
GLSL Noise Algorithms

Please consider using instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
ax3l /
Last active February 16, 2024 08:32
CUDA Compilers
mattiaslundberg / arch-linux-install
Last active December 26, 2023 19:40
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
View arch-linux-install
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide ( contains a more verbose description.
# Download the archiso image from
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap