Skip to content

Instantly share code, notes, and snippets.

View KyGuy2002's full-sized avatar

IEatBeans KyGuy2002

View GitHub Profile
@KyGuy2002
KyGuy2002 / java-eating-ram.md
Last active March 12, 2022 11:38
Minecraft Java Server Eating RAM

Minecraft Java Server Eating RAM

Having memory issues with your spigot, paper, or other Minecraft server software? Your in the right place!

How Does Java Handle RAM?

Unlike many languages, Java, which is what your server runs on, manages and collects memory by itself! This makes life Much easier for developers, but can be a little confusing for you, the server owner.

Java is an object oriented programming language, which means that every bit of code is an object that's

@alexanderson1993
alexanderson1993 / useUSBDMX.ts
Last active September 7, 2024 02:57
A React hook which uses the WebUSB API to send DMX messages to a connected ENTTEC Pro device
// A React hook which uses the WebUSB API to send DMX messages to a connected ENTTEC Pro device
// This will only work in Chrome.
// If you want to just try it, run it through the TypeScript compiler here https://www.typescriptlang.org/play/index.html
import React from "react";
declare global {
interface Navigator {
// This USB type comes from @types/w3c-web-usb
readonly usb: USB;