Skip to content

Instantly share code, notes, and snippets.

@Diyagi
Diyagi / natpmp.ps1
Last active January 16, 2025 16:49
Powershell implementation of NAT-PMP made for use with ProtonVPN
function Request-NATPMPPort {
param (
[int]$PublicPort = 1,
[int]$PrivatePort = 0,
[string]$Protocol = "udp",
[string]$GatewayIP = "10.2.0.1",
[int]$Port = 5351,
[int]$Lifetime = 60
)
@Diyagi
Diyagi / MasterMerge.ps1
Last active January 7, 2025 10:45
Merge Episodes that are in multiple parts into one
# Path to the directory containing your MKV files
$inputDirectory = "F:\MasterChichi\MasterChef3"
$outputDirectory = "F:\MasterChichi\MasterMergedCu"
$tempDirectory = "F:\MasterChichi\MasterTemp"
if (-not (Test-Path -Path $outputDirectory)) {
New-Item -ItemType Directory -Path $outputDirectory
}
if (-not (Test-Path -Path $tempDirectory)) {
New-Item -ItemType Directory -Path $tempDirectory
@Diyagi
Diyagi / OncehumanLink.md
Last active August 9, 2024 22:41
Linking Once Human Discord outside embedded browser
@Diyagi
Diyagi / stereoMic.ts
Created July 15, 2024 18:57
Vencord Stereo Mic
import definePlugin, { OptionType } from "@utils/types";
import { definePluginSettings } from "@api/Settings";
const settings = definePluginSettings({
voiceBitrate: {
type: OptionType.SLIDER,
description: "Voice Bitrate",
markers: [8, 64, 256, 384, 512],
default: 512,
stickToMarkers: false,
@Diyagi
Diyagi / efates.csv
Created March 13, 2024 05:09
Eureka Fates
RowID FateChain FateName BossName
1328 0 The Swarm Never Sets The Emperor of Anemos
1329 264 Wail in the Willows Pazuzu
1331 0 Wine and Honey Fafnir
1332 0 Unsafety Dance Sabotender Corrido
1333 0 Teles House Teles
1334 0 Prove Your Amemettle Amemet
1335 0 Caym What May Caym
1336 0 The Killing of a Sacred Bombardier Bombadeel
1337 0 Sing, Muse Polyphemus
@Diyagi
Diyagi / questtargetsdebug.lua
Created January 29, 2022 23:02
Quest Targets (more like objectives) debug for Monster Hunter Rise
local QuestManager = sdk.get_managed_singleton("snow.QuestManager");
---------------| *Daclaring* variables for later initialization |--------------------
local getQuestTargetTotalBossEmNum = nil
local getQuestTargetTotalTgtNum = nil
local getQuestTargetTotalCount = nil
local getMainTargetListForUI = nil
local getMainTargetListForUI_Type = nil
local getMainTargetListForUI_Count = nil