Skip to content

Instantly share code, notes, and snippets.

[28Apr2024 11:33:26.979] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 47.2.20, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412, nogui]
[28Apr2024 11:33:26.981] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.9 by N/A; OS Linux arch amd64 version 6.5.8-arch1-1
[28Apr2024 11:33:30.307] [main/INFO] [net.minecraftforge.fml.loading.ImmediateWindowHandler/]: ImmediateWindowProvider not loading because launch target is forgeserver
[28Apr2024 11:33:30.334] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/fabricio/minecraft/atm_9/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2365!/ Service=ModLauncher Env=SERVER
[28Apr2024 11:33:30.889] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/fabricio/minecraft/atm_9/librari
---- Minecraft Crash Report ----
// Uh... Did I do that?
Time: 2024-04-28 08:54:44
Description: Watching Server
java.lang.Error: ServerHangWatchdog detected that a single server tick took 180.00 seconds (should be max 0.05)
at net.minecraft.world.level.Level.m_6522_(Level.java:187) ~[server-1.20.1-20230612.114412-srg.jar%23907!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:twilightforest:cloud,re:computing_frames,pl:accesstransformer:B,xf:fml:twilightforest:cloud,re:classloading,pl:accesstransformer:B,xf:fml:twilightforest:cloud,pl:mixin:APP:kubejs-common.mixins.json:LevelMixin,pl:mixin:APP:create_new_age.mixins.json:LevelMixin,pl:mixin:APP:botania_xplat.mixins.json:LevelAccessor,pl:mixin:APP:adastra.mixins.json:common.multipart.LevelMixin,pl:mixin:APP:utilitix.mixins.json:MixinLevel,pl:mixin:APP:citadel.mixins.json:LevelMixin,pl:mixin:APP:observable.common.json:LevelMixin,pl:mixin:APP:gtceu.mixins.json:LevelMixin,pl:mixin:APP:sliceanddice.mixins.json:LevelMixin,pl:mixin:APP:aether.mixins.json:common.accesso
@Fabricio20
Fabricio20 / JPA-FULL-TEXT-SEARCH.md
Created November 22, 2022 16:19
Spring Boot JPA Full Text Search

This is a small guide on how to get database-specific full text search working on Spring JPA. Before you proceed, make sure you actually need full text search. Full text search is about matching words against words, not partial words against words, so depending on your use case, a simple like %data% operator can be a better user experience.

As an example, if your dataset looks like this:

id | name
------------------
0  | reimu hakurei
1  | suwako moriya
@Fabricio20
Fabricio20 / ReadMe.md
Last active November 7, 2023 04:37
Docker - Nginx + PHP FPM + MariaDB + PhpMyAdmin

Docker

This is a docker-compose template for a lemp stack.

Make sure to change both the root password under the mysql service, and the absolute URI on the phpmyadmin container.
You can also expose phpMyAdmin locally instead of remotely by properly configuring the ports.

Default locations:
(Original) -> (Your server)
/var/www/html -> ./webroot
/etc/nginx -> ./nginx

@Fabricio20
Fabricio20 / keybase.md
Last active June 17, 2022 16:55
keybase.md

Keybase proof

I hereby claim:

  • I am fabricio20 on github.
  • I am fabricio20 (https://keybase.io/fabricio20) on keybase.
  • I have a public key whose fingerprint is 4E12 EBEA 7DBE BACB 449D C873 A557 792D CDEC 47DA

To claim this, I am signing this object:

@Fabricio20
Fabricio20 / docker-compose.yml
Created July 9, 2018 18:36
Dockerized Grafana + Prometheus + GrayLog
version: '2'
services:
mongo:
image: "mongo:3"
volumes:
- ./mongo:/data/db
graylog:
image: graylog2/server:2.1.1-1
environment:
GRAYLOG_PASSWORD_SECRET: GRAYLOG_PASSWORD
@Fabricio20
Fabricio20 / DiscordInterceptor.java
Created November 5, 2021 12:44
JDA Inteceptor for Twilight
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
import org.jetbrains.annotations.NotNull;
import java.io.IOException;
public class DiscordInterceptor implements Interceptor {
@Fabricio20
Fabricio20 / SimpleConfig.java
Created August 11, 2015 20:40
SimpleConfig Lib For SpigotMC
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
@Fabricio20
Fabricio20 / gist:b965c79377f87ef9cdf3
Last active February 16, 2021 16:35
Resetting Worlds Spigot - Fabricio20
// This Reset one is hand-made and may not work, but these are the methods and the sequence you need to follow.
public void reset(World world) { // Please modify to your needs
Bukkit.getServer().unloadWorld(world, false); // False = Not Save
Bukkit.getServer().runTaskLater(Main.getInstance(), new Runnable(){ // Run It Later to make sure its unloaded.
@Override
public void run() {
final File srcWorldFolder = new File("plugins/YourPluginNameCaseSensitive/" + world.getName() + "/" + world.getName()); // Backup world folder location
final File worldFolder = new File(world.getName()); // World folder name
deleteFolder(worldFolder); // Delete old folder
copyWorldFolder(srcWorldFolder, worldFolder); // Copy backup folder
@Fabricio20
Fabricio20 / Iptables.md
Last active December 4, 2020 11:36
Iptables cheatsheet.

Iptables cheatseet

Good to know: Iptables reads rules from top to bottom, stopping at the first rule that matches.

Terms

chain: group of rules (Default ones are INPUT, OUTPUT and FORWARD).

target: What to do with a packet (Often used are ACCEPT, DROP (No echo/"offline"), REJECT (Echoes back 'not authorized icmp')).

Targets