Skip to content

Instantly share code, notes, and snippets.

@TheExpertNoob
TheExpertNoob / processMissing.py
Created April 24, 2024 04:06
My rendition of finding missing files.
import os
import re
import requests
import zstandard
import subprocess
import shutil
import time
# Directory path to search
search_directory = "/path/to/stash"
@TheExpertNoob
TheExpertNoob / PeppaPigShop.md
Created February 25, 2024 07:17
Peppa Pig Shop Generator

python3 fakeshop.py

@TheExpertNoob
TheExpertNoob / Interactive Duplication Processor by TitleID.md
Last active February 23, 2024 02:32
Interactive Duplication Processor by TitleID

Usage

pip -m install send2trash colorama python processDupesInt.py "C:/Path/to/directory"

@TheExpertNoob
TheExpertNoob / test.php
Created October 2, 2023 07:58
PHP to add an overlay to a random bg image
<?php
// Get the requested image filename from the query parameter
if (isset($_GET['image'])) {
$requestedImage = $_GET['image'];
// Check if the requested image exists in the 'images' folder
$imagesDir = 'images/';
$requestedImagePath = $imagesDir . $requestedImage;
if (file_exists($requestedImagePath)) {

Random backgrounds in Tinfoil theme:

Call the png in Tinfoil theme settings.json:

https://yourdomain.com/images/halloween.png

Create a .htaccess file on the hosting server inside a folder called "images":

RewriteEngine On  
RewriteRule ^halloween\.png$ halloween.php [L]
@TheExpertNoob
TheExpertNoob / Extract encrypted titlekey from NAND dump
Last active September 25, 2022 02:24
Get Encrypted title keys from NAND Dump
Decrypt with the only key needed to obtain your titlekeys.
ddffd9e6c550750b187ba5c09e669d40db5d031964cd63455d78d73ba24ae62b
Gathered from info from http://switchbrew.org/index.php?title=Ticket
1) dump your nand with linux
2) open NAND dump with HACDISKMOUNT
3) extract/dump PRODINFO partition with BIS0 key
4) mount SYSTEM (with BIS2 keys) and copy Save/80000000000000e2 to your physical harddrive