Skip to content

Instantly share code, notes, and snippets.

View Amejonah1200's full-sized avatar
🙃
Code, Eat, Code, Sleep, Repeat.

Amejonah1200

🙃
Code, Eat, Code, Sleep, Repeat.
  • In a Dimension, in a Cluster, in a Galaxy, in a Solar-System, on a Planet, at Microsoft, on a Server, in a GitHub-Repository
View GitHub Profile
@JohnnyJayJay
JohnnyJayJay / EventExpecter.java
Last active September 12, 2022 03:40
Event Waiter für Spigot und faule Menschen, die Inventar Menüs wollen
package com.github.johnnyjayjay.testplugin;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.EventPriority;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import java.util.function.Consumer;
import java.util.*;
import org.bukkit.command.*;
public final class DelegatingCommand implements CommandExecutor {
private final Map<String, ? extends CommandExecutor> children;
private final CommandExecutor defaultCase;
public DelegatingCommand(Map<String, ? extends CommandExecutor> children) {
this((s, c, l, a) -> false, children);
@JohnnyJayJay
JohnnyJayJay / main.py
Created September 2, 2019 17:15
vigenere cipher hacking script
import math
def duplicates(vigenere):
strings = []
duplicates = set()
for index in range(len(vigenere)):
string = ""
for i in range(3):
if index + i < len(vigenere):
string += vigenere[index + i]
import gzip
import base64
import struct
def TAG_End(b):
return None, b
def TAG_byte(b):
return b[0], b[1:]
@rainbowdashlabs
rainbowdashlabs / loop.sh
Created September 11, 2021 14:02
Recover, restart and upgrade your process via exit codes with bash
#!/bin/bash
# switch to config directory
while true; do
# Of course you can use any other executable file here. We use java.
java \
-Xms256m \
-Xmx2048m \
@d3lt3x
d3lt3x / PlayerMoveListener.java
Created April 20, 2023 19:59
Creates RBG glow below a player in minecraft using the Paper API.
package me.delta.mc.wand.listeners;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.BlockDisplay;
import org.bukkit.entity.Display;
import org.bukkit.entity.Player;