Skip to content

Instantly share code, notes, and snippets.

View Justsnoopy30's full-sized avatar

Justsnoopy30 Justsnoopy30

View GitHub Profile
@onnowhere
onnowhere / replaceitem_converter.py
Last active November 12, 2020 10:03
Converts /replaceitem to 1.17 /item format. Put in datapack root folder and run. Searches all mcfunction files inside ./data/*
import os
import re
def convert_replaceitem(fread):
changed = False
for i,command in enumerate(fread):
if command.startswith("replaceitem"):
# Regex credit to Dieuwt on the MinecraftCommands Discord
fread[i] = re.sub(r'replaceitem (entity @.[^[]*? .*? |entity @.\[.*?\] .*? |block (.*? ){4})', r'item \1replace ', command)
changed = True
@williambl
williambl / history.md
Last active May 27, 2023 15:59
History of Fabric

[13:13] Prospector: modmuss started OML (open mod loader) which was targeting minecraft 1.10, as a project mostly for fun. a bunch of people jumped on board with it

[13:14] Prospector: there was a big problem with this project, and that was that it didn't really do anything better than forge. like there was a list of events people wanted to add and it was basically just the forge event list lol

[13:14] Prospector: there weren't very many...new ideas with it

[13:14] Prospector: other than the fact that it used an open set of mappings, instead of MCP (called Open Mappings I believe)

[13:16] Prospector: OML pretty much died, and as 1.11 snapshots were rolling around, asie and modmuss started Fabric (after 2 name changes, Chorus and Prismarine) to play with these snapshots because some interesting changes were being made to the code, specifically to itemstacks. Fabric was determined to do things differently, using a modular approach, so you had fabric-loader, fabric-event-entity, fabric-resources, fabric-comm

@maxried
maxried / $README.md
Last active October 4, 2024 13:20
Automatically Sign Kernels After Installation

This script goes into /etc/kernel/postinst.d. You have to make it executable by root, e.g. chown root:root /etc/kernel/postinst.d/00-signing ; chmod u+rx /etc/kernel/postinst.d/00-signing. It assists you with automatically signing freshly installed kernel images using the machine owner key in a way similar to what dkms does. This is mainly useful if you want to use mainline kernels on Ubuntu on Secure Boot enabled systems. This needs shim-signed to be set up. If you have questions this one might help you: While I made this for Ubuntu 20.04, it should work on current Debian based distributions. YMMV.

@onomatopellan
onomatopellan / .config
Created June 12, 2020 19:49
kernel configuration for a working 5.7.0 kernel in Insider builds 19640+
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.7.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90201
CONFIG_LD_VERSION=233000000
CONFIG_CLANG_VERSION=0
CONFIG_CC_CAN_LINK=y