Skip to content

Instantly share code, notes, and snippets.

@LoneDev6
LoneDev6 / ImageIOFix.java
Last active January 5, 2022 17:18
ImageIOFix
import javax.imageio.IIOException;
import javax.imageio.ImageIO;
import javax.imageio.ImageTypeSpecifier;
import javax.imageio.ImageWriter;
import javax.imageio.stream.ImageOutputStream;
import java.awt.image.RenderedImage;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
@LoneDev6
LoneDev6 / HashMapPrimitive.java
Last active January 12, 2022 15:46
HashMapPrimitive
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
@LoneDev6
LoneDev6 / some_servers_using_itemsadder.yml
Last active October 5, 2023 09:20
Some servers using ItemsAdder
List of some servers using ItemsAdder:
- :flag_cn:/:flag_us: `play.junyestudio.com` `[1.18.2]`
- :flag_us: `play.fournationsmc.net` `[1.18.2]`
- :flag_us: `play.friendlyworldserver.com` `[1.20.1]`
- :flag_gb: `Play.AstroComet.Net` `[1.20.2]`
- :flag_us: `oakhe.art` `[1.19+]`
- :flag_us: `Celestite.Elrol.Dev` `[1.19.4]`
- :flag_it: `Athlas.club` `[1.12 - 1.19.3]`
- :flag_gb: `Play.AstroComet.Net` `[1.19.2]`
@LoneDev6
LoneDev6 / log4j2.xml
Created November 13, 2024 10:53
Debugging Minecraft packets
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="SysOut" target="SYSTEM_OUT">
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
<Filters>
<RegexFilter regex=".*(keep_alive|client_tick_end|set_time|move_player_rot|move_player_pos|move_entity_pos_rot|move_entity_pos|set_entity_motion|rotate_head).*" onMatch="DENY" onMismatch="ACCEPT" />
</Filters>
</Console>
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">