Skip to content

Instantly share code, notes, and snippets.

View Username404-59's full-sized avatar

Username404-59

  • France
  • 18:27 (UTC +02:00)
View GitHub Profile
@lowercasebtw
lowercasebtw / DynamicTransformsBuilder.java
Last active June 29, 2025 08:51
DynamicTransformsBuilder Util Class
import com.mojang.blaze3d.buffers.GpuBufferSlice;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.util.ARGB;
import org.joml.Matrix4f;
import org.joml.Vector3f;
import org.joml.Vector4f;
import java.util.Optional;
public final class DynamicTransformsBuilder {
public static void renderBufferWithPipeline(
String name,
RenderPipeline renderPipeline,
RenderTarget renderTarget,
Consumer<BufferBuilder> bufferBuilderConsumer,
Consumer<RenderPass> uniformAndSamplerConsumer
) {
VertexFormat.Mode mode = renderPipeline.getVertexFormatMode();
BufferBuilder builder = Tesselator.getInstance().begin(mode, renderPipeline.getVertexFormat());
bufferBuilderConsumer.accept(builder);
@ChampionAsh5357
ChampionAsh5357 / 1206-121-primer.md
Last active April 25, 2025 14:11
Minecraft 1.20.5/6 -> 1.21 Mod Migration Primer

Minecraft 1.20.5/6 -> 1.21 Mod Migration Primer

This is a high level, non-exhaustive overview on how to migrate your mod from 1.20.5/6 to 1.21. This does not look at any specific mod loader, just the changes to the vanilla classes.

This primer is licensed under the Creative Commons Attribution 4.0 International, so feel free to use it as a reference and leave a link so that other readers can consume the primer.

If there's any incorrect or missing information, please leave a comment below. Thanks!

Pack Changes

@opekope2
opekope2 / Space Engineers Plugin Loader Linux.md
Last active June 4, 2025 21:49
Run Space Engineers with Plugin Loader on Linux

Run Space Engineers with Plugin Loader on Linux - New Method

Adapted from @GangolfOvaert's comment.

  1. Download the latest Space Engineers Launcher into the Bin64 folder of the game
  2. Set Space Engineers launch options in Steam to bash -c 'exec "${@/%SpaceEngineers.exe/SpaceEngineersLauncher.exe}"' -- %command% (arguments can be added after %command%)
  3. Launch Space Engineers from Steam

This method does not use SpaceEngineersLauncher.py, so downloading it is not required.

@jinliming2
jinliming2 / README.md
Last active March 18, 2025 18:01
Steam in Chroot

You may follow Gentoo Wiki (or other guides) to install steam in chroot first. But you may failed to launch games like Dota2, because steam is using something called soldier and bwrap.

The steam.sh below can make soldier and bwrap work by mount chroot_dir twice. this works fine for me.

Save steam.sh file to /usr/local/bin/steam, so you can run steam command in terminal to launch steam, or add steam deeplink like steam steam://install/xxx.

To start steam without ask sudo password, add this to your sudoers file:

%wheel ALL=(ALL) NOPASSWD: /usr/local/bin/steam
@DvilMuck
DvilMuck / aternosAntiAntiadblock.user.js
Last active July 21, 2025 10:39
Aternos Anti Anti Adblock userscript for Aternos.org
// ==UserScript==
// @name Aternos Anti Anti-adblock
// @namespace r0630hh1edcuum5397kimyc0ucwy2h3psn4c6r1u4j
// @version 0.1.23
// @description Fuck anti-adblock from the free hosting minecraft servers Aternos.org. Parry this you filthy casual!
// @author Angry Developer against excessive ADs
// @source https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a
// @supportURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a
// @updateURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js
// @downloadURL https://gist.github.com/DvilMuck/f2b14f3f65e8f22974d781277158f82a/raw/aternosAntiAntiadblock.user.js
@MCJack123
MCJack123 / on-writing-an-os.md
Last active May 29, 2025 22:05
On Writing a ComputerCraft OS

On Writing a ComputerCraft OS

One of the most common projects I've seen for ComputerCraft is to write an operating system. People look at the limited command-line interface that CraftOS provides, and think, "I want this to work like my normal computer does!" Time and time again, a new post pops up on the ComputerCraft forums or Discord either announcing an OS, or asking for help with an OS, or releasing an OS. Usually, there are some very obvious flaws in these "OS"es, ranging from poor design choices, to overstating what they are and underdelivering. There are many common misunderstandings and undersights that newbie developers run into when writing an operating system, and these end up creating mediocre products at best.

A Critical Distinction

The term "OS" is thrown around a lot, and in my opinion it's very overused. According to [Wikipedia]: "An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs." However, m

@sxiii
sxiii / WormsWMD-Archlinux.md
Last active July 9, 2025 22:58
How to fix Worms W.M.D. launch on ArchLinux, Manjaro, Garuda, Artix Linux & Linux Mint

Game information Worms W.M.D.

Distribution name and version where applicable Manjaro 20.1.1 (Mikah)

Problem description Worms doesn't launch out of the box without two small tweaks. When launching Worms W.M.D. in Manjaro and Archlinux, you need to do two things:

  1. Install this apps: sudo pacman -S libcurl-gnutls libidn11 qt5-base qt5-xcb-private-headers(If you are on any other distro then Arch, you can skip this step. At least this is reported to be OK to skip for Linux Mint)
@monperrus
monperrus / i915.txt
Created October 5, 2020 08:40
Module flags of Linux Kernel Module i915 modinfo -p i915
modeset:Use kernel modesetting [KMS] (0=disable, 1=on, -1=force vga console preference [default]) (int)
enable_dc:Enable power-saving display C-states. (-1=auto [default]; 0=disable; 1=up to DC5; 2=up to DC6) (int)
enable_fbc:Enable frame buffer compression for power savings (default: -1 (use per-chip default)) (int)
lvds_channel_mode:Specify LVDS channel mode (0=probe BIOS [default], 1=single-channel, 2=dual-channel) (int)
panel_use_ssc:Use Spread Spectrum Clock with panels [LVDS/eDP] (default: auto from VBT) (int)
vbt_sdvo_panel_type:Override/Ignore selection of SDVO panel mode in the VBT (-2=ignore, -1=auto [default], index in VBT BIOS table) (int)
reset:Attempt GPU resets (0=disabled, 1=full gpu reset, 2=engine reset [default]) (int)
vbt_firmware:Load VBT from specified file under /lib/firmware (charp)
error_capture:Record the GPU state following a hang. This information in /sys/class/drm/card<N>/error is vital for triaging and debugging hangs. (bool)
enable_hangcheck:Periodically check GPU activity for d
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['exports'], factory);
else if (typeof exports === 'object')
factory(module.exports);
else
root.Kangle = factory(typeof Kangle === 'undefined' ? {} : Kangle);
}(this, function (_) {
'use strict';
function Unit() {