Skip to content

Instantly share code, notes, and snippets.

View Geolykt's full-sized avatar
🍴
Fork, fork

Geolykt

🍴
Fork, fork
View GitHub Profile
[Geolykt@emeric-pc-linux tdiff]$ curl -s https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/9.3/asm-tree-9.3.jar --output asm-tree.jar
[Geolykt@emeric-pc-linux tdiff]$ curl -s https://repo1.maven.org/maven2/org/ow2/asm/asm-util/9.3/asm-util-9.3.jar --output asm-util.jar
[Geolykt@emeric-pc-linux tdiff]$ curl -s https://repo1.maven.org/maven2/org/ow2/asm/asm/9.3/asm-9.3.jar --output asm.jar
[Geolykt@emeric-pc-linux tdiff]$ mkdir jar
[Geolykt@emeric-pc-linux tdiff]$ cp *.jar jar
[Geolykt@emeric-pc-linux tdiff]$ cp unapplied/build/libs/claimchunk-0.0.23-RC8-plugin.jar jar/
[Geolykt@emeric-pc-linux tdiff]$ java -classpath "./jar/*" org.objectweb.asm.util.ASMifier com.cjburkey.claimchunk.ClaimChunk > unapplied.java
[Geolykt@emeric-pc-linux tdiff]$ cp applied/build/libs/claimchunk-0.0.23-RC8-plugin.jar jar/
[Geolykt@emeric-pc-linux tdiff]$ java -classpath "./jar/*" org.objectweb.asm.util.ASMifier com.cjburkey.claimchunk.ClaimChunk > applied.java
[Geolykt@emeric-pc-linux tdiff]$ diff unapplied.java applied.java
@Geolykt
Geolykt / keybase.md
Created July 9, 2022 18:13
keybase.md

Keybase proof

I hereby claim:

  • I am geolykt on github.
  • I am geolykt (https://keybase.io/geolykt) on keybase.
  • I have a public key whose fingerprint is C25D 4D19 CD6C 0880 C7EB 75AF E5BA 2919 5650 89C3

To claim this, I am signing this object:

package de.geolykt.mavenresolver.version;
@Deprecated // This class was created by mistake
public class SemverVersion {
public final long major;
public final int minor;
public final int patch;
public final String[] preReleaseIdentifiers;
public final String[] metadata;
package de.geolykt.starplane;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
package de.geolykt.multiplayer.packets.s2c;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ThreadLocalRandom;
import org.slf4j.LoggerFactory;
import de.geolykt.multiplayer.client.Shared;
import de.geolykt.multiplayer.client.hacks.ClientEmpire;
import de.geolykt.multiplayer.client.hacks.HackStarGenerator;
@Geolykt
Geolykt / pom.xml
Created September 6, 2022 18:42
Example pom for using cancel-backtrace
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.geolykt</groupId>
<artifactId>canceller-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>CancellerTest</name>
<repositories>
package render.tile.geom;
public class DimetricGeometry implements Geometry {
private static final int TILE_WIDTH = 64;
private static final int TILE_HEIGHT = 31;
@Override
public void render(int centerX, int centerY, float screenWidth, float screenHeight, float screenOffsetX, float screenOffsetY, float zoomFactor, GeometryTileVisitor visitor) {
final float actualHeight = TILE_HEIGHT * zoomFactor;
@Geolykt
Geolykt / slbc-chains.md
Created October 17, 2022 18:00
Implementation of task in the starloader-build-chain core

Chains

The build tool uses a concept called "Chains", which are comparable to Maven lifecycles. They are however meant to be a bit more intuitive, which is done by providing proper documentation through documents such as this one.

Problems of not using Chains

(SL-)Brachyura only has a concept of Tasks, which can only be invoked once at a single time. This means that a Task cannot run after a given Task, unless the

@Geolykt
Geolykt / fix-git-permissions.sh
Created October 22, 2022 18:22
Set all modified (probably modified due to changed file mods) files to have a chmod of 644
git status | grep "modified" | egrep -o " {3}.+" | egrep -o "[^ ]+" | xargs -n1 chmod -v 644
.version 61 0
.class public d/g/mc/un/UN
.super org/bukkit/plugin/java/JavaPlugin
.sourcefile "UN.j"
.field private prios Ljava/util/List;
.field private fserr Z
.field private fspnc Z
.method public <init> : ()V