Skip to content

Instantly share code, notes, and snippets.

View plyrthn's full-sized avatar
🎱
AIEEEEE SHE TOOK MY MAGIC 8 BALL

James Duarte plyrthn

🎱
AIEEEEE SHE TOOK MY MAGIC 8 BALL
  • East Coast
View GitHub Profile
@plyrthn
plyrthn / fix_steam_game_recording_timelines.py
Last active October 20, 2025 19:16
Fixes corrupted Steam game recording timeline files that prevent clips from being saved or exported on steam game recording.
import json
import os
import shutil
## Credit for finding this solution go to:
## https://steamcommunity.com/groups/SteamClientBeta/discussions/0/601916204203051690/
## https://steamcommunity.com/groups/SteamClientBeta/discussions/5/601917463282777291/#c601917691382761871
def fix_timeline_file(filepath):
try:
@plyrthn
plyrthn / peacockautostart.bat
Created January 27, 2023 17:48
HITMAN 3 Batch File to start the peacock server and kill it simultaneously
@echo off
cd /d F:\Games\"Game Tools"\Hitman3\Peacock
start .\nodedist\node.exe chunk0.js
cd /d J:\SteamLibrary\steamapps\common\"HITMAN 3"\Retail
HITMAN3.exe
@plyrthn
plyrthn / startup.ps1
Last active April 24, 2025 16:10
startup.ps1
# This part checks for internet connectivity before proceeding
function WaitForInternetConnection {
$isConnected = $false
while (-not $isConnected) {
try {
Write-Output "Trying to connect..."
Test-Connection -ComputerName "google.com" -Count 1 -ErrorAction Stop
$isConnected = $true
Write-Output "Connection successful."
} catch {
@plyrthn
plyrthn / nand2Edizon.py
Created June 19, 2021 04:32
script to take nand saves and get them ready for edizon bulk import
from subprocess import check_output
f=[]
import os
for file in os.listdir("save"):
f.append(os.path.join("save", file))
for file in f:
tID = str(check_output("hactoolnet.exe -t save "+file, shell=True))[170:186]
############################################################################################################
#
# General Setting
#
############################################################################################################
- general: MTK_PLATFORM_CFG
info:
- config_version: V2.1.0
platform: MT6853
project: k6853v1_64_6360
rd %temp% /s /q
md %temp%
del C:\Users\James\Desktop\*.* /s /q
spicetify backup apply
npm audit fix --force
cd /d F:\Documents\Programming\Python\WinGvcci\
F:\Documents\Programming\Python\WinGvcci\WinGvcci.py
@plyrthn
plyrthn / p5SWEBMRandomizer.py
Last active February 20, 2021 21:44
Automated Shitpost Machine
import os,glob,random
from shutil import copyfile
# Garnet's automated shitpost machine for Persona 5 Scramble
## Drop webms and mp4s in the input folder that gets created upon running this once.
## run it and put it in the romfs folder
### NOTE!!! There are two MP4s, used for the phones UI, so try to find two vertical videos, or a bunch, who cares
try:
os.makedirs("random/pd/videos")
import io
offset0 = 0x4000
offset1 = 0x5000
offset2 = 0x740000
offset3 = 0xD2F000
offset4 = 0x146A000
outpt = open("logo_new_mi9t.img", "wb")
@plyrthn
plyrthn / rotInHellSpamBot.py
Created May 24, 2020 16:32
Wrote this in a fit of rage for spam emails I was getting.
import requests, names, random
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Content-Type': 'application/x-www-form-urlencoded',
'Origin': 'http://clubaaa.xyz',
'DNT': '1',
'Connection': 'keep-alive',
import requests
id = 1
while id < 1000:
headers = {
'authority': 'smashstages.com',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',