Skip to content

Instantly share code, notes, and snippets.

@Aetopia
Aetopia / Program.cs
Created June 22, 2026 12:38
Asynchronous Object Probing with automatic disposal of non-results.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using static System.Threading.Tasks.TaskContinuationOptions;
static class Program
{
@Aetopia
Aetopia / Program.cs
Created June 5, 2026 13:38
"Static" Abstract Classes
using System;
static class Program
{
static void Main()
{
A.Method();
new B().Method();
A.Method();
@Aetopia
Aetopia / README.md
Created March 10, 2026 12:49
How to undervolt your NVIDIA GPU using MSI Afterburner's frequency lock feature?

How to undervolt your NVIDIA GPU using MSI Afterburner's frequency lock feature?

To undervolt an NVIDIA GPU, there are 2 methods:

  • Locking the card to specific voltage via the V/F card.

  • Manually adjusting the V/F curve by flattening points on the curve.

These methods have a couple of problems, namely:

@Aetopia
Aetopia / MinecraftGDK.cs
Last active February 14, 2026 06:42
Purely managed implementation for launching Minecraft: Bedrock Edition on Windows.
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Windows.System.Diagnostics;
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2026-01-22T00:12:33.9316067</Date>
<Author>WINDOWS\Windows</Author>
<URI>\Cloudflare WARP</URI>
</RegistrationInfo>
<Triggers>
<EventTrigger>
<Enabled>true</Enabled>
@Aetopia
Aetopia / Program.c
Created September 18, 2025 09:37
Alternative bootstrapper for Minecraft Preview's PC Bootstrapper.
#define INITGUID
#define COBJMACROS
#define _MINAPPMODEL_H_
#define WIDL_C_INLINE_WRAPPERS
#include <windows.h>
#include <shobjidl.h>
#include <appmodel.h>
#include <shlwapi.h>
#include <string>
#include <vector>
#include <format>
#include <initguid.h>
#include <windows.h>
#include <setupapi.h>
#include <devguid.h>
#include <devpkey.h>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace System.Runtime.Serialization.Json.Linq;
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"CaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"IconFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\