Skip to content

Instantly share code, notes, and snippets.

mc@Debian-101-buster-64-minimal:~/backups$ bup ls
fatal: git show-ref: bad ref refs/heads/survival (8c03f9045d38524f25596ec5b75c54d1ff5ef22e)
Traceback (most recent call last):
File "/usr/lib/bup/bup/main.py", line 317, in run_module_cmd
import_and_run_main(module, args)
File "/usr/lib/bup/bup/main.py", line 282, in import_and_run_main
module.main(args)
File "/usr/lib/bup/bup/cmd/ls.py", line 14, in main
rc = ls.via_cmdline(argv[1:], out=out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mc@Debian-101-buster-64-minimal:~/backups$ bup web :8090
Serving HTTP on 0.0.0.0:8090...
Handling request for b'/'
fatal: git show-ref: bad ref refs/heads/survival (8c03f9045d38524f25596ec5b75c54d1ff5ef22e)
Uncaught exception GET / (totallylegit.ip.goes.here)
HTTPServerRequest(protocol='http', host='bismuth.be:8090', method='GET', uri='/', version='HTTP/1.1', remote_ip='totallylegit.ip.goes.here')
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tornado/web.py", line 1788, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
package net.dugged.nessie;
import net.jafama.FastMath;
import org.lwjgl.BufferUtils;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Param;
import org.openjdk.jmh.annotations.Scope;
@Nessiesson
Nessiesson / build.gradle
Created August 24, 2021 22:31
Mixn 0.8.3-RELEASE -> Mixin 0.8.4-SNAPSHOT bugs
buildscript {
repositories {
jcenter()
maven { url = "https://files.minecraftforge.net/maven" }
maven { url = "https://repo.spongepowered.org/repository/maven-public" }
maven { url = "https://plugins.gradle.org/m2" }
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT"
[18:02:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:02:25] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:02:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:02:25] [main/DEBUG] [FML]: Injecting tracing printstreams for STDOUT/STDERR.
[18:02:25] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading
[18:02:25] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_252, running on Windows 10:amd64:10.0, installed at C:\Program Files\AdoptOpenJDK\jdk-8.0.252.09-hotspot\jre
[18:02:25] [main/DEBUG] [FML]: Java classpath at launch is:
[18:02:25] [main/DEBUG] [FML]: C:\Users\Nessi\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.5.2847\forge-1.12.2-14.23.5.2847.jar
[18:02:25] [main/DEBUG] [FML]: C:\Users\Nessi\AppData\Roaming\.minecraft\libraries\net\
@Nessiesson
Nessiesson / addresslocator.java
Created April 5, 2020 20:49
Address locator for MSPT in MC1.12.2
// https://bitbucket.org/ekabanov/mat/
public class Main {
@SuppressWarnings("DuplicatedCode")
public static void main(String[] args) throws Exception {
if (args.length < 1) {
System.out.println("Please supply heap dump file");
System.exit(1);
}
buildscript {
ext.kotlin_version = '1.3.70'
repositories {
jcenter()
maven { url = "https://files.minecraftforge.net/maven" }
maven { url = "https://repo.spongepowered.org/maven" }
maven { url = "https://plugins.gradle.org/m2" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
package si.bismuth.mixins;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.ClickType;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.inventory.Slot;
import net.minecraft.inventory.SlotCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
{
"mappings": {
"si/bismuth/mixins/MinecraftServerMixin": {
"loadAllWorlds": "Lnet/minecraft/server/MinecraftServer;func_71247_a(Ljava/lang/String;Ljava/lang/String;JLnet/minecraft/world/WorldType;Ljava/lang/String;)V",
"Lnet/minecraft/profiler/Profiler;startSection(Ljava/lang/String;)V": "Lnet/minecraft/profiler/Profiler;func_76320_a(Ljava/lang/String;)V",
"Lnet/minecraft/server/MinecraftServer;tickCounter:I": "Lnet/minecraft/server/MinecraftServer;field_71315_w:I",
"Lnet/minecraft/profiler/Profiler;endSection()V": "Lnet/minecraft/profiler/Profiler;func_76319_b()V",
"Lnet/minecraft/profiler/Profiler;endStartSection(Ljava/lang/String;)V": "Lnet/minecraft/profiler/Profiler;func_76318_c(Ljava/lang/String;)V",
"run": "Lnet/minecraft/server/MinecraftServer;run()V",
"tick": "Lnet/minecraft/server/MinecraftServer;func_71217_p()V",
// ================nessiesson/usefulmod/config/Config.class =================
// class version 50.0 (50)
// access flags 0x31
public final class nessiesson/usefulmod/config/Config implements com/mumfrey/liteloader/modconfig/Exposable {
@Lcom/mumfrey/liteloader/modconfig/ExposableOptions;(strategy=Lcom/mumfrey/liteloader/modconfig/ConfigStrategy;.Unversioned, filename="usefulmod")
// access flags 0xA
private static Z isShulkerBoxDisplayEnabled