Skip to content

Instantly share code, notes, and snippets.

@LXGaming
LXGaming / Caddyfile
Last active May 31, 2024 19:51
Caddy - Invert 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 May 25, 2022 22:30
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 November 15, 2024 00:08
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
@LXGaming
LXGaming / autobuild.sh
Created October 18, 2018 21:48
Devjam81/Library-iPhone - Updated for Python3
#!/bin/bash
echo -e "\033[31mDev-Jam 12/01/2015 - Script to build Libimobiledevice\033[0m"
echo -e "\033[32m\033[1m\033[4m\033[5m\033[7mCreator Dev-Jam improved by matteyeux on 27/12/15\033[0m"
#######################################################################
#
# Project......: autobuild.sh
# Creator......: Dev-Jam remasterized for Matteyeux le 27/12/15
#######################################################################
@LXGaming
LXGaming / MediaWorks.txt
Last active December 19, 2023 09:35
MediaWorks.nz Information
Icecast:
http://icecast.mediaworks.nz/
http://icecast.mediaworks.nz/status-json.xsl
Radio-API:
https://radio-api.mediaworks.nz/radio-api/v3/stations/
https://radio-api.mediaworks.nz/radio-api/v3/station/[identifier]
https://radio-api.mediaworks.nz/radio-api/v3/station/[identifier]/web
https://radio-api.mediaworks.nz/radio-api/v3/station/[identifier]/[region]/web