Skip to content

Instantly share code, notes, and snippets.

@comp500
comp500 / SectionCopyBenchmark.java
Last active November 28, 2021 17:59
Sodium SIMD optimisations microbenchmarks
package org.example;
import sun.misc.Unsafe;
import org.openjdk.jmh.annotations.*;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@comp500
comp500 / HideVSContextMenu.reg
Created September 27, 2020 01:43
Hide "Open in Visual Studio" from the directory context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode]
"LegacyDisable"=""
[HKEY_CLASSES_ROOT\Directory\shell\AnyCode]
"LegacyDisable"=""
@comp500
comp500 / add_alacritty_to_context_menu.reg
Last active September 27, 2020 01:48 — forked from emlautarom1/add_alacritty_to_context_menu.reg
Add alacritty to Windows context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\alacritty]
@="Open Alacritty here"
"Icon"="C:\\Users\\comp500\\scoop\\apps\\alacritty\\current\\alacritty.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\alacritty\command]
@="\"C:\\Users\\comp500\\scoop\\apps\\alacritty\\current\\alacritty.exe\" \"--working-directory\" \"%V%\""
@comp500
comp500 / jdwpdump.java
Created August 21, 2020 23:27
Terrible technique for dumping class files using JDI/JDWP
package link.infra.jdwp;
import com.sun.jdi.Field;
import com.sun.jdi.LocalVariable;
import com.sun.jdi.Method;
import com.sun.jdi.ReferenceType;
import com.sun.jdi.*;
import com.sun.jdi.connect.AttachingConnector;
import com.sun.jdi.connect.Connector;
import com.sun.jdi.connect.IllegalConnectorArgumentsException;
@comp500
comp500 / fabricserversidemods.md
Last active April 15, 2024 20:13
Useful Fabric server side mods
@comp500
comp500 / jumploader.json
Last active September 12, 2020 14:55
1.15 -> 1.16.1 jumploader JSON (outdated, Jumploader 2.0+ has custom game versions built in!)
{
"downloadRequiredFiles": true,
"forceFallbackStorage": false,
"overrideInferredSide": false,
"disableUI": false,
"launch": {
"mainClass": "net.fabricmc.loader.launch.knot.KnotClient"
},
"jars": {
"minecraft": [
@comp500
comp500 / yeet.user.js
Last active May 19, 2020 21:44
Curseforge ASPX error yeeter
// ==UserScript==
// @name Curseforge ASPX error yeeter
// @version 0.1
// @description Literally never seen this before but here you go
// @author comp500
// @namespace https://infra.link/
// @match https://www.curseforge.com/error*
// @homepageURL https://github.com/comp500/Curseforge-Userscripts/
// @supportURL https://github.com/comp500/Curseforge-Userscripts/issues/
// @source https://github.com/comp500/Curseforge-Userscripts/hahayes
@comp500
comp500 / big_list_of_modpack_things.md
Last active October 5, 2023 21:07
Big List of Modpack Things

Big List of Modpack Things

Also see the Modrinth Awesome list, and a (probably somewhat outdated) list of curse modpack downloaders at https://gist.github.com/jikuja/f44533a16ad04624c3eb8e99e7a3e494/

This list is a bit outdated in places, but I'm still adding things here so that I don't forget them.

Distribution platforms

Name Type Number of mods/packs Popularity (Similarweb rank) Official launcher Third-party support Open Source backend Author rewards
CurseForge Public 31,000 mods; 38,000 modpacks #1410 Yes Many No Yes
Modrinth Public 2000 mods #79,182 In development ATLauncher, packwiz, pacmc, modweaver Yes Planned
@comp500
comp500 / aha.js
Created February 19, 2020 04:22
how 2 break discord
// literally just throwing this code here because I need to sleep
(() => {
let handler = {
get: function(target, name) {
console.log("getName " + name);
return target[name];
}
};