Skip to content

Instantly share code, notes, and snippets.

@TheLeftExit
TheLeftExit / main.lua
Created April 18, 2026 14:03
Chao Memory solver v2 (mGBA script)
if cbid then
return
end
buffer = console:createBuffer("Test buffer")
function indexof(t, v)
for key, value in pairs(t) do
if value == v then
return key
end
@TheLeftExit
TheLeftExit / post-update
Created March 14, 2026 20:07
GitHub Pages at home
TMPDIR=$(mktemp -d)
ORIGIN=$(pwd)
cd $TMPDIR
git clone $ORIGIN .
bash build.sh # oooh RCE!
cd
rm -rf $TMPDIR
@TheLeftExit
TheLeftExit / this.txt
Created September 28, 2025 09:43
Enable image sharpening in Factorio on Linux
1. Install https://github.com/DadSchoorse/vkBasalt
> pamac build vkbasalt
2. Write to /etc/vkBasalt.conf (or any other path specified in above README):
```
effects = cas
casSharpness = 1
```
3. Set Factorio's Steam launch args:
@TheLeftExit
TheLeftExit / helloworld.cs
Created September 21, 2025 15:08
HelloWorldHelloWorld.cs
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
CompilationUnit()
.WithUsings(
SingletonList(
UsingDirective(
IdentifierName("System")
@TheLeftExit
TheLeftExit / code.h
Created March 16, 2024 20:56
framework.h evaluation results
This file has been truncated, but you can view the full file.
__inner_fallthrough_dec
__ANNOTATION(SAL_analysisMode(__AuToQuOtE __In_impl_ char *mode);)
__ANNOTATION(SAL_functionClassNew(__In_impl_ char*);)
__PRIMOP(int, _In_function_class_(__In_impl_ char*);)
typedef unsigned int uintptr_t;
typedef char* va_list;
_CRT_BEGIN_C_HEADER
typedef unsigned int size_t;
typedef int ptrdiff_t;
typedef int intptr_t;
@TheLeftExit
TheLeftExit / UploadSimulatorvalueModel.cs
Created December 18, 2023 12:19
Upload Simulator 2 prestige point calculator
public class UploadSimulatorvalueModel(decimal? rawExponent = null)
{
public string Layer1 { get => this[1]; set => this[1] = value; }
public string Layer2 { get => this[2]; set => this[2] = value; }
public string Layer3 { get => this[3]; set => this[3] = value; }
public string Layer4 { get => this[4]; set => this[4] = value; }
public string this[int prestigeLayer]
{
get
@TheLeftExit
TheLeftExit / cswinloop.cs
Created February 14, 2023 17:23
C# window message loop generated by ChatGPT
using System;
using System.Runtime.InteropServices;
public static class Program
{
[DllImport("user32.dll")]
private static extern bool RegisterClassEx(ref WNDCLASSEX wcex);
[DllImport("user32.dll")]
private static extern IntPtr CreateWindowEx(
@TheLeftExit
TheLeftExit / obscenity.cs
Last active October 11, 2023 13:37
I had an epiphany at 12 AM
#pragma warning disable CS0183
#pragma warning disable CS0660
#pragma warning disable CS0661
long D = 12;
// if it compiles, it has to be true
var axiom = (My)8==D is long;
public class My {
@TheLeftExit
TheLeftExit / ShittyTextEdit.cs
Last active November 10, 2022 12:59
DevExpress.XtraEditors.HtmlContentControl as a text editor
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
@TheLeftExit
TheLeftExit / RTTI.cs
Created June 12, 2021 16:06
Standalone RTTI in C#
using System;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace TheLeftExit.RTTI
{
static class ProcessManipulations
{