Skip to content

Instantly share code, notes, and snippets.

View RezzedUp's full-sized avatar
✌️
soon is my favorite word

RezzedUp RezzedUp

✌️
soon is my favorite word
View GitHub Profile
@RezzedUp
RezzedUp / NumPadFix.ahk
Last active April 16, 2020 06:39
A fix for (Acer laptop) keyboards with numpads lacking dedicated keys for Home, End, Pg Up, and Pg Dn.
; My Acer laptop doesn't have dedicated keys for 'home', 'end', 'page up', and 'page down'.
; However, it does have a numpad with these keys available as long as num lock is disabled...
; which isn't very ideal. This AutoHotKey script allows me to access the keys listed above on
; my laptop while having the numpad buttons work as usual (with num lock enabled).
; Just hold CTRL+<numpad button> to get the desired key.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
@RezzedUp
RezzedUp / Javalin-in-Spigot-or-Bungee.md
Last active February 29, 2024 19:32
Guide - Using Javalin in a Spigot or Bungeecord Plugin

Using Javalin in a Spigot or Bungeecord Plugin

A common problem when attempting to use Javalin in a Spigot or Bungeecord plugin is the following:

[ERROR] java.lang.RuntimeException: javax.servlet.ServletException: java.lang.RuntimeException: Unable to load org.eclipse.jetty.websocket.server.WebSocketServerFactory
        ...
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.server.WebSocketServerFactory

This is incredibly frustrating because as far as you can tell, you've included all of Javalin's dependencies properly. In fact, you're probably reading this guide right now because you yourself fell victim to these pesky errors. Don't get too fraught, the solution is right under your nose!