Skip to content

Instantly share code, notes, and snippets.

View LXGaming's full-sized avatar

Alex Thomson LXGaming

View GitHub Profile
@LXGaming
LXGaming / README.md
Last active December 23, 2024 01:24
This War of Mine - Cheat / Developer Mode
@LXGaming
LXGaming / dump.txt
Last active December 22, 2024 22:17
This War of Mine - Lua Functions
- .get
-- NULL_ENTITY_MULTIPLAYER_ID
-- STATE_UPDATE_LAG_S
-- gKosovoDiary
-- gKosovoFieldOfVision
-- gKosovoGlobalState
-- gKosovoHeritageManager
-- gKosovoScene
-- gKosovoTotemManager
-- gUIProperties
@LXGaming
LXGaming / Caddyfile
Last active January 22, 2025 23:14
Caddy - Negate Request Matcher
(negate) {
# Set the initial values
vars {args[0]} false
vars {args[1]} true
# On match invert the values
vars @{args[0]} {args[0]} true
vars @{args[0]} {args[1]} false
# Create the inverse matcher
@LXGaming
LXGaming / dump.txt
Last active December 22, 2024 22:17
Frostpunk - Lua Functions
.get
- gAnalyticsSystem
- gFrostpunkGame
.set
- gAnalyticsSystem
- gFrostpunkGame
ACTIVATESCENEPARAMSETFLAG_KILLOVERRIDEMODEIFANY
ACTIVATESCENEPARAMSETFLAG_OVERRIDEMODE
ACTIVATESCENEPARAMSETFLAG_RESET
AddLabel
@LXGaming
LXGaming / Group Policy
Last active July 4, 2024 23:59
Windows Bullshittery Begone
Windows Components -> News and interests
- Enable news and interests on the taskbar: Enabled
Windows Components -> Search
- Allow Cortana: Disabled
- Do not allow web search: Enabled
- Don't search the web or disable web results in Search: Enabled
Network -> DNS Client
- Turn off smart multi-homed name resolution: Enabled
@LXGaming
LXGaming / MessagePatternConverterMixin.java
Last active December 10, 2021 09:25
ASM Patch for log4j exploit
/*
* Copyright 2021 Alex Thomson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@LXGaming
LXGaming / java.ps1
Last active June 3, 2023 07:10
Java Runtime PowerShell Script
$DefaultPackage = ""
$DefaultVersion = ""
class Runtime {
[System.IO.FileInfo] $Executable
[System.IO.DirectoryInfo] $Directory
[string] $Package
[Version] $Version
Runtime([System.IO.FileInfo] $Executable) {
Search: https://api.modpacks.ch/public/modpack/search/8?term=${searchTerm}
Get: https://api.modpacks.ch/public/modpack/${packID}
Popular Installs: https://api.modpacks.ch/public/modpack/popular/installs/12
Popular Plays: https://api.modpacks.ch/public/modpack/popular/plays/12
Featured Packs: https://api.modpacks.ch/public/modpack/featured/5
Changelog: https://api.modpacks.ch/public/modpack/${packID}/${versionID}/changelog
Get Pack Manifest: https://api.modpacks.ch/public/modpack/${packID}
Get Pack Version Manifest: https://api.modpacks.ch/public/modpack/${packID}/${Version}
Server Download:
- Windows: https://api.modpacks.ch/public/modpack/${packID}/${versionID}/server/windows
@LXGaming
LXGaming / java.bat
Created April 1, 2020 01:41
Java Proxy Batch Script
@ECHO OFF
SET JDK=
IF NOT EXIST "%JDK%" (
ECHO No JDK found.
EXIT /B
)
SET JAVA_EXE=%JDK%\bin\java.exe
@LXGaming
LXGaming / README.md
Last active December 22, 2024 22:49
Frostpunk - Cheat / Developer Mode

Developer Mode

  1. Start the game with -devconsole launch argument (Steam Guide / Epic Games Guide)
  2. Press the Backtick (Grave Accent) to toggle console

Commands

Command Description
SetGameTime(Day) Changes the day
SetResource("Id", Amount) Changes the resource amount. Quotes are required for the resource id
ShowDebugButtonsPanel Cheats / Debugging buttons