Skip to content

Instantly share code, notes, and snippets.

@Bricktricker
Bricktricker / CertificateBuilder.java
Created May 30, 2022 18:14
A pure Java way of generating X509 certificates
/*
MIT License
Copyright (c) 2022
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
package jarverifier;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.security.cert.CertPath;
import java.security.cert.CertificateException;
package jarverifier;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.security.cert.CertPath;
import java.security.cert.CertificateException;
package jarverifier;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.nio.charset.StandardCharsets;
import java.security.cert.CertPath;
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=1 alphabet=243 time_input=11.7186 time_hist=0.233749 time_eff=1.28929 time_construct=6.86498 time_merge=12.1245 memory=4367866688 traffic=733852640 traffic_asym=0
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=1 alphabet=243 time_input=5.4633 time_hist=0.240336 time_eff=1.28974 time_construct=6.87754 time_merge=11.9873 memory=4367866688 traffic=733852640 traffic_asym=0
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=1 alphabet=243 time_input=5.41156 time_hist=0.224639 time_eff=1.28798 time_construct=6.86034 time_merge=11.8442 memory=4367866688 traffic=733852640 traffic_asym=0
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=1 alphabet=243 time_input=5.37425 time_hist=0.256164 time_eff=1.2842
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=1 alphabet=243 time_input=6.73052 time_hist=2.54776 time_eff=16.375 time_construct=6.98167 time_merge=63.687 memory=4367866688 traffic=733852640 traffic_asym=0 bits_written=8589934592
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=1 alphabet=243 time_input=5.13291 time_hist=2.54861 time_eff=16.3705 time_construct=6.99507 time_merge=64.5965 memory=4367866688 traffic=733852640 traffic_asym=0 bits_written=8589934592
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=1 alphabet=243 time_input=5.10956 time_hist=2.54799 time_eff=16.3764 time_construct=6.95573 time_merge=63.2217 memory=4367866688 traffic=733852640 traffic_asym=0 bits_written=8589934592
RESULT algo=mpi-dd-ppc nodes=2 workers_per_node=1 threads=20 input=/work/smphhuet/bigdata/cc.txt size=2147483648 bps=
package com.example.examplemod;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.player.ClientPlayerEntity;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.texture.AtlasTexture;
import net.minecraft.util.math.vector.Matrix4f;
@Bricktricker
Bricktricker / spl.md
Last active January 25, 2021 12:19
Serverpacklocator setup

Serverpacklocator

Guide how I install cpw's serverpacklocator on Windows for Minecraft versions 1.14.4+. This is not an offical guide and may break at any time. Use at your own risk.

Server installation

Install a basic dedicated Minecraft Forge server and whitelist all players, which want to play on the server. Then download the Mod-version from here. and place it into the mods folder in the server folder. Start the server once to generate all needed files. Go into the servermods folder and open the serverpacklcoator.toml file with a text editor. Change the name to the ip/dns name of the server. You can also change the port of the http server (Note: This is not the minecraft server port!). Delete the cacert.pem and ca.key file and start and stop the server.

Client installation

Install Forge on the client. Download the Bundle from here

@Bricktricker
Bricktricker / events.md
Last active July 24, 2022 17:48
Forge events