Skip to content

Instantly share code, notes, and snippets.

View Proximyst's full-sized avatar
🤟
Very swag

Mariell Hoversholm Proximyst

🤟
Very swag
View GitHub Profile
22.07 09:00:59 [Multicraft] Received start command
22.07 09:00:59 [Multicraft] Loading server properties
22.07 09:00:59 [Multicraft] Starting server!
22.07 09:00:59 [Multicraft] Loaded config for "Custom.jar (Use and upload your own JAR)"
22.07 09:00:59 [Multicraft] Running setup...
22.07 09:01:00 [Setup/"Clean Mod Directories and Plugins" before setup] Deleting 'mods' directory...
22.07 09:01:00 [Setup/"Clean Mod Directories and Plugins" before setup] Deleting 'mod' directory...
22.07 09:01:00 [Setup/"Clean Mod Directories and Plugins" before setup] Deleting all jar files...
22.07 09:01:00 [Setup/"Clean Mod Directories and Plugins" before setup] Deleting all files in 'plugins'...
22.07 09:01:00 [Setup/"Clean Mod Directories and Plugins" before setup] Cleanup completed.
@Proximyst
Proximyst / EventHandler.kt
Created May 17, 2019 15:34
overengineered events for discord4j lol
package com.proximyst.eisaku.eventhandling.framework
import com.proximyst.eisaku.Main
import discord4j.core.event.domain.Event
import kotlin.reflect.KClass
import kotlin.reflect.full.companionObject
object EventHandler {
val handlers = mutableListOf<EventHandlerClassWrapper<*>>()
[package]
name = "cheat"
version = "0.1.0"
authors = ["Mariell Hoversholm <proximyst@proximyst.com>"]
edition = "2018"
[dependencies]
winapi = { version = "^0.3", features = ["std", "everything"] }
libc = { version = "^0.2", features = ["use_std", "extra_traits"] }
getset = "^0.0"
mov $6, %eax
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id("com.github.johnrengelman.shadow") version "4.0.4" apply false
id("java")
kotlin("jvm") version "1.3.21" apply false
}
@Proximyst
Proximyst / pmc.md
Last active October 9, 2018 11:52
PMC specification

Proxi's Machine Code

Instructions

All instructions are given in uint8_t.

Code Name Description Parameters
0x00 END Ends the program 1: Error code as 8-bit value
0x01 PRINT Prints a string of characters 1: Length; 2: Characters to write as 8-bit ASCII values
/**
* Defines different encodings to use for packet handling.
*/
enum class PacketEncoding {
/**
* Handle the packet with no compression whatsoever.
*/
UNCOMPRESSED {
override fun decode(data : ByteBuf) : ByteBuf {
return data
package com.proximyst.ussrm.impl
import com.proximyst.ussrm.packet.lowlevel.Packet
import com.proximyst.ussrm.packet.lowlevel.PacketEncoding
import com.proximyst.ussrm.packet.lowlevel.data.VarInt
import com.proximyst.ussrm.packet.lowlevel.data.toPacket
import com.proximyst.ussrm.packet.lowlevel.data.toVarInt
import com.proximyst.ussrm.packet.lowlevel.packet.handshake.serverbound.PacketHandshakeServerboundHandshake
import com.proximyst.ussrm.packet.lowlevel.packet.login.clientbound.PacketLoginClientboundDisconnect
import com.proximyst.ussrm.packet.lowlevel.packet.status.clientbound.PacketStatusClientboundResponse
package com.proximyst.ussrm.packet.lowlevel
import com.proximyst.ussrm.packet.lowlevel.data.VarInt
import io.netty.buffer.ByteBuf
import io.netty.buffer.Unpooled
import java.io.ByteArrayOutputStream
import java.util.zip.DeflaterOutputStream
import java.util.zip.Inflater
/**
class PluginImpl : JavaPlugin() {
override fun onLoad() { instance = this }
companion object {
lateinit var instance : PluginImpl
private set
}
}