Skip to content

Instantly share code, notes, and snippets.

View TehBrian's full-sized avatar
🦆
quamck

TehBrian TehBrian

🦆
quamck
View GitHub Profile
@Spottedleaf
Spottedleaf / Starlight 1.20.md
Last active March 29, 2025 08:10
The future of the Starlight mod

In 1.21?

Moonrise contains Starlight as well as a lot of server-side optimisations.

Final change of plans (March 8, 2024)

I don't see that many people are using Starlight on modern versions anymore. As such, I don't see any reason to continue to maintain the mod versions, given that they do have real mod conflict issues with other mods. Starlight is also not neccessary to use on 1.20.x anyways.

@rrehbein
rrehbein / Minecraft_1_16_to_1_18.xml
Last active April 30, 2024 21:54
Minecraft class name changes from 1.16 to 1.18
<?xml version="1.0" encoding="UTF-8"?>
<migrationMap>
<name value="Minecraft 1.16 to 1.18 (Forge)"/>
<order value="0"/>
<description value="Minecraft class rename plus some Forge classes"/>
<entry oldName="com.mojang.blaze3d.matrix.MatrixStack" newName="com.mojang.blaze3d.vertex.PoseStack" type="class"/>
<entry oldName="com.mojang.blaze3d.vertex.IVertexBuilder" newName="com.mojang.blaze3d.vertex.VertexConsumer" type="class"/>
<entry oldName="net.minecraft.block.AbstractBlock.Properties" newName="net.minecraft.world.level.block.state.BlockBehaviour.Properties" type="class"/>
<entry oldName="net.minecraft.block.Block" newName="net.minecraft.world.level.block.Block" type="class"/>
<entry oldName="net.minecraft.block.Blocks" newName="net.minecraft.world.level.block.Blocks" type="class"/>
@sindresorhus
sindresorhus / esm-package.md
Last active April 25, 2025 07:50
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@vantezzen
vantezzen / porkbun_domain_search.js
Created November 6, 2018 14:45
Search domains on porkbun.com that are under a given price
/**
* Porkbun.com: Search domain names under certain price
*
* by vantezzen (https://github.com/vantezzen)
*
* Instructions:
* 1. Go to https://porkbun.com/products/domains
* 2. Open JavaScript Console
* 3. Copy and paste this code into the console
* 4. Before executing, customize the `config` object to your needs
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active March 29, 2025 18:28
Final Cut Pro X trial reset
#!/usr/bin/swift
// DISCLAIMER
// This script modifies an unencrypted file associated with the trial version of Final Cut Pro.
// Under the DMCA (17 U.S.C. § 1201), this modification does not qualify as circumvention of a technological
// protection measure (TPM), as it does not involve bypassing encryption, authentication, or similar protections.
// Distributing this code is therefore legal under the DMCA.
// This script is intended for educational and research purposes, such as exploring trial-related file structures,
@jfcomeau
jfcomeau / jekyll-serve-local-ip.sh
Created October 28, 2016 16:55
Jekyll serve using local IP (useful to test on multiple devices a same local network)
jekyll s --host $(awk '/inet / && $2 != "127.0.0.1"{print $2}' <(ifconfig))
@di
di / tlds
Created December 4, 2014 20:01
Valid Two-Letter Top Level Domains
ac
ad
ae
af
ag
ai
al
am
an
ao
@graywolf336
graywolf336 / BukkitSerialization.java
Last active February 16, 2025 15:51
Serialize and deserialize the player's inventory, including armor and content.
/**
* Converts the player inventory to a String array of Base64 strings. First string is the content and second string is the armor.
*
* @param playerInventory to turn into an array of strings.
* @return Array of strings: [ main content, armor content ]
* @throws IllegalStateException
*/
public static String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException {
//get the main content part, this doesn't return the armor
String content = toBase64(playerInventory);