Skip to content

Instantly share code, notes, and snippets.

View Richy-Z's full-sized avatar
๐Ÿ‰
Crafting stuff...

Richard Ziupsnys Richy-Z

๐Ÿ‰
Crafting stuff...
View GitHub Profile
@Richy-Z
Richy-Z / deobfuscation-blogpost-identifierexample.lua
Created November 10, 2024 09:38
https://richy.lol - An introduction to script de-obfuscation with Roblox Lua
-- these two are both the same
local example1 = ("task").wait
local example2 = task.wait
@Richy-Z
Richy-Z / deobfuscation-blogpost-line1.lua
Created November 10, 2024 09:28
https://richy.lol/ - An Introduction to code de-obfuscation with Roblox Luau
local _ = ('t'..'a'..'s'..'k')['w'..'a'..'i'..'t']
@Richy-Z
Richy-Z / deobfuscation-blogpost-original.lua
Created November 10, 2024 09:13
https://richy.lol/ - An Introduction to code de-obfuscation with Roblox Luau
local _ = ('t'..'a'..'s'..'k')['w'..'a'..'i'..'t']
local __ = (getfenv()[string.char(103,97,109,101)].LinkingService)
local ___ = (string[('r'..'e'..'v'..'e'..'r'..'s'..'e')])
while (0 == 0) do
_((5^2)^-2)
__:openUrl("\104\116\116\112\115\58\47\47"..___("\108\111\108\46\121\104\99\105\114"))
end
@Richy-Z
Richy-Z / ascii-replacement.js
Created November 10, 2024 08:29
ASCII Character Replacement in Code
function replaceAsciiCodes(eenput, delimiters = ["'", '"', '`', '[', ']']) {
const delimiterPattern = delimiters.map(delimiter => `\\${delimiter}`).join('|');
const asciiRegex = new RegExp(`([${delimiterPattern}])((?:\\\\\\d{2,3})+)([${delimiterPattern}])`, "g");
return eenput.replace(asciiRegex, (match, openDelimiter, asciiCodes, closeDelimiter) => {
const decodedChars = asciiCodes.replace(/\\(\d{2,3})/g, (_, code) =>
String.fromCharCode(Number(code))
);
return `${openDelimiter}${decodedChars}${closeDelimiter}`;

Using Prism Launcher

Firstly of course, ensure that you have logged in with your Microsoft account to play Minecraft legally with Prism Launcher.

Creating a new instance (with or without mod loaders)

Creating a new instance is incredibly easy. A new instance is completely separate from other instances and data is not shared between instances. This means that you can have 2 billion mods in one instance which uses Fabric, and you could also have a different instance with only 3 mods using Forge. And they're separate and you dont have to go inside your mods folder every time you want to switch Minecraft versions!

1. Click "Add Instance"

Screenshot 2024-08-05 at 21 30 55

A new window will appear where you can change your instance. What I personally love about Prism Launcher is that it is an all-in-one solution. You can either just play Minecraft as if it were the real Minecraft Launcher, or you could even play using

Minecraft Mods List

Iโ€™ve personally been playing Minecraft for a very long time, and for the past 4 years I donโ€™t think Iโ€™ve played fully vanilla Minecraft (no mod loaders, no modifications) since. In fact, I donโ€™t plan to either.

Here is a list of mods which I use every single time I play Minecraft, a short explanation on what they do, and an image to show what it does (if applicable).

All of these mods barely modify the actual gameplay of Minecraft, keeping it as vanilla as possible. Theyโ€™re either optimisation mods or quality of life mods which make it seem like Mojang actually puts effort into Minecraft by making it a polished, full-fledged game.

Remember to read how to install mods using Prism Launcher first!

@Richy-Z
Richy-Z / parties.txt
Created June 28, 2024 13:46
UK General Election Predictions June 2024 - matplotlib python
Aberafan Maesteg - Labour
Aberdeen North - SNP
Aberdeen South - SNP
Aberdeenshire North and Moray East - SNP
Aberdeenshire West and Kincardine - SNP

๐Ÿ”Œ USBX Device Creation

The SSDT-USBX.aml provided here creates an ACPI device named USBX and then creates a method to only enable it in Darwin (macOS) and disable it for everything else.

/*
 * Original
 */
DefinitionBlock ("", "SSDT", 2, "DRTNIA", "SsdtUsbx", 0x00001000)
{
    Scope (\_SB)
    {