Skip to content

Instantly share code, notes, and snippets.

@PurpleIsEverything
PurpleIsEverything / ClickInventoryListener.java
Created August 16, 2017 22:16
Test code for inventory/slot parent bug.
package com.example;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.event.Listener;
import org.spongepowered.api.event.Order;
import org.spongepowered.api.event.filter.cause.First;
import org.spongepowered.api.event.item.inventory.ClickInventoryEvent;
import org.spongepowered.api.item.inventory.Slot;
import org.spongepowered.api.item.inventory.transaction.SlotTransaction;
import org.spongepowered.api.item.inventory.type.CarriedInventory;
---- Minecraft Crash Report ----
WARNING: coremods are present:
AppleCore (AppleCore-mc1.12.2-3.1.3.jar)
LibLoader (# LibLoader.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.31.jar)
CTMCorePlugin (CTM-MC1.12-0.3.0.15.jar)
ForgelinPlugin (Forgelin-1.7.2.jar)
LoadingPlugin (Quark-r1.4-123.jar)
RandomPatches (randompatches-1.12.2-1.1.0.0.jar)
Stall report from 2018-06-24 18:50:12 +0000, 113 threads, stalled for at least 30000 ms.
Heap memory usage: 3796 / 7885 MB (max. 8589 MB).
Created by sampler 1.73 (MC 1.12).
"Server thread" #19 prio=5
RUNNABLE
at net.minecraft.world.gen.NoiseGeneratorOctaves.func_76304_a(SourceFile:71)
at twilightforest.world.ChunkGeneratorTwilightForest.generateHeightmap(ChunkGeneratorTwilightForest.java:193)
at twilightforest.world.ChunkGeneratorTwilightForest.setBlocksInChunk(ChunkGeneratorTwilightForest.java:132)
at twilightforest.world.ChunkGeneratorTwilightForest.func_185932_a(ChunkGeneratorTwilightForest.java:99)
---- Minecraft Crash Report ----
WARNING: coremods are present:
LibLoader (# LibLoader.jar)
SpongeCoremod (forge-1.12.2-14.23.4.2714-universal.jar)
ForgelinPlugin (Forgelin-1.7.4.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.31.jar)
CTMCorePlugin (CTM-MC1.12-0.3.0.15.jar)
RandomPatches (randompatches-1.12.2-1.1.0.0.jar)
Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.9.9.1-1.12.2-anarchy.jar)
io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(98779) + length(1) exceeds writerIndex(98779): PooledUnsafeDirectByteBuf(ridx: 98779, widx: 98779, cap: 131072)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:459) ~[velocity-proxy-1.0-SNAPSHOT-all.jar:1.0-SNAPSHOT (git-54c3c370, build unknown)]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265) ~[velocity-proxy-1.0-SNAPSHOT-all.jar:1.0-SNAPSHOT (git-54c3c370, build unknown)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[velocity-proxy-1.0-SNAPSHOT-all.jar:1.0-SNAPSHOT (git-54c3c370, build unknown)]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[velocity-proxy-1.0-SNAPSHOT-all.jar:1.0-SNAPSHOT (git-54c3c370, build unknown)]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.jav
=== REDIS BUG REPORT START: Cut & paste starting from here ===
1:S 29 Apr 2019 07:19:03.851 # Redis 0.9.4-r3 crashed by signal: 11
1:S 29 Apr 2019 07:19:03.851 # Crashed running the instruction at: 0x55677277eccd
1:S 29 Apr 2019 07:19:03.852 # Accessing address: 0x28
1:S 29 Apr 2019 07:19:03.852 # Failed assertion: <no assertion failed> (<no file>:0)
------ STACK TRACE ------
EIP:
keydb-server *:6379(rdbPopulateSaveInfo(rdbSaveInfo*)+0x13d) [0x55677277eccd]
=== KEYDB BUG REPORT START: Cut & paste starting from here ===
1:S 17 Jul 2019 04:47:21.706 # KeyDB 0.9.6 crashed by signal: 11
1:S 17 Jul 2019 04:47:21.706 # Crashed running the instruction at: 0x564c3236c8fd
1:S 17 Jul 2019 04:47:21.706 # Accessing address: 0x28
1:S 17 Jul 2019 04:47:21.706 # Failed assertion: <no assertion failed> (<no file>:0)
------ STACK TRACE ------
EIP:
keydb-server *:6379(rdbPopulateSaveInfo(rdbSaveInfo*)+0x14d) [0x564c3236c8fd]
@PurpleIsEverything
PurpleIsEverything / steamlink.config
Created October 29, 2019 19:32
Functional 5.4-rc5 kernel config for Valve's Steam Link with IPTables, 512MB ram and USB_ACM support.
@PurpleIsEverything
PurpleIsEverything / commit.diff
Created August 13, 2021 04:36
Very quick modification to allow for data format changing in the pterodactyl wings daemon
diff --git a/config/config.go b/config/config.go
index 2d46e85..ab1dd8f 100644
--- a/config/config.go
+++ b/config/config.go
@@ -122,8 +122,14 @@ type SystemConfiguration struct {
// Directory where logs for server installations and other wings events are logged.
LogDirectory string `default:"/var/log/pterodactyl" yaml:"log_directory"`
- // Directory where the server data is stored at.
- Data string `default:"/var/lib/pterodactyl/volumes" yaml:"data"`