TL;DR Do away with the High Availability stack in a safe manner. Avoid the risk of reboots when troubleshooting suspected hardware woes. Particularly useful for frequent loss-of-quorum scenarios.
ORIGINAL POST How to disable HA permanently
TL;DR Do away with the High Availability stack in a safe manner. Avoid the risk of reboots when troubleshooting suspected hardware woes. Particularly useful for frequent loss-of-quorum scenarios.
ORIGINAL POST How to disable HA permanently
package yourPackage1.yourPackage2; | |
import java.lang.reflect.Field; | |
import java.util.HashMap; | |
import net.minecraft.server.v1_7_R1.DataWatcher; | |
import net.minecraft.server.v1_7_R1.EntityPlayer; | |
import net.minecraft.server.v1_7_R1.Packet; | |
import net.minecraft.server.v1_7_R1.PacketPlayInClientCommand; | |
import net.minecraft.server.v1_7_R1.PacketPlayOutSpawnEntityLiving; |
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration> | |
<Appenders> | |
<File name="legacy_server_log" fileName="server.log"> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" /> | |
</File> | |
<Console name="console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" /> | |
</Console> |
package tc.oc.pgm.utils; | |
/** | |
* Direct port of the JavaScript LiquidMetal. | |
* https://github.com/rmm5t/liquidmetal | |
* | |
* @author Steve Anton | |
*/ | |
public class LiquidMetal { | |
public static final double SCORE_NO_MATCH = 0.0; |
from os import chdir, path | |
from tempfile import mkdtemp | |
from shutil import rmtree | |
from struct import pack | |
from subprocess import check_output | |
def jar_contents(j_path): | |
return check_output(['jar', 'tf', j_path]).split("\n") | |
def jar_extract(j_path): |