Skip to content

Instantly share code, notes, and snippets.

@Ricket
Ricket / crash-2017-09-10_18.33.28-client.txt
Created September 10, 2017 23:35
XNet crash tesselating block in world
---- Minecraft Crash Report ----
WARNING: coremods are present:
Default Options (DefaultOptions_1.11.2-8.2.2.jar)
ForgelinPlugin (Forgelin-1.5.1.jar)
Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.6.3-anarchy.jar)
TransformerLoader (OpenComputers-MC1.11.2-1.7.0.40.jar)
AppleCore (AppleCore-mc1.11.2-2.2.2.jar)
CTMCorePlugin (CTM-MC1.11.2-0.2.2.12.jar)
LoadingPlugin (Quark-r1.2-93b.jar)
---- Minecraft Crash Report ----
WARNING: coremods are present:
IELoadingPlugin (immersiveengineeringcore.jar)
TransformerLoader (opencomputers.jar)
CTMCorePlugin (ctm.jar)
IELoadingPlugin (ImmersiveEngineering-0.12-76-core.jar)
CoreMod (aroma1997core.jar)
FMLPlugin (elulib.jar)
AstralCore (astralsorcery.jar)
diff --git a/src/main/java/org/mcupdater/util/ServerDefinition.java b/src/main/java/org/mcupdater/util/ServerDefinition.java
index 8e288f0..69fd8b6 100644
--- a/src/main/java/org/mcupdater/util/ServerDefinition.java
+++ b/src/main/java/org/mcupdater/util/ServerDefinition.java
@@ -1,5 +1,6 @@
package org.mcupdater.util;
+import com.google.common.base.Joiner;
import org.apache.commons.codec.language.Soundex;
import org.apache.commons.lang3.StringUtils;
@Ricket
Ricket / part-of-PathWalker.java
Created March 25, 2018 22:16
addition to MCUpdater's PathWalker, to create a path/filename given the mod id and original filename
private static Map<String, String> modPaths = new HashMap<>();
private static List<String> badVersionStrings = new ArrayList<>();
static {
// key is mod id
// value is mod filename (no `mods/`)
modPaths.put("betterbuilderswands", "BetterBuildersWands.jar");
modPaths.put("bibliocraft", "BiblioCraft.jar");
modPaths.put("biomesoplenty", "BiomesOPlenty.jar");
modPaths.put("ChunkPregeneratorV", "Chunk Pregenerator.jar");
@Ricket
Ricket / gist:78bcd681db86bcbb134558428c4c6cb4
Created September 25, 2018 16:54
git diff -- use jq to pretty-print the json before diffing it
echo "*.json diff=json" >> ~/.gitattributes
git config --global core.attributesfile ~/.gitattributes
git config --global diff.json.textconv "jq '.' \$1"
@Ricket
Ricket / GuessTheNumber.py
Created October 25, 2018 03:39
Guess-the-number script for teaching programming
print('I am thinking of a number between 1 and 20...')
import random
secret_number = random.randint(1, 20)
tries = 0
winner = False
while tries < 6 and not winner:
//10.10.10.10.example.com/ 1
//contoso.pkgs.visualstudio.com/_packaging/MyFeed/npm/:_authToken=heider 1
//google.com/ 1
//registry.blah.com/ 1
//registry.blah.com/foo:_authToken=whatev 1
//registry.blah.com/foo:_password= 1
//registry.blah.com/foo:username=barbaz 1
//registry.blah.edu/foo/bar/baz:_authToken=recurseNoLevel 1
//registry.blah.eu/ 1
//registry.blah.foo/ 1
+----------------------------------------------------------+--------+------------------------------------------+----------------+---------+
| World 'overworld' (dim: 0) |
| Loaded chunks: 9654 |
| All currently loaded entities: |
+----------------------------------------------------------+--------+------------------------------------------+----------------+---------+
| Name | Health | Location | Chunk | Region |
+----------------------------------------------------------+--------+------------------------------------------+----------------+---------+
| Alpine Buck
+---------------------------------------------------+--------+------------------------------------------+----------------+---------+
| World 'overworld' (dim: 0) |
| Loaded chunks: 2951 |
| All currently loaded entities: |
+---------------------------------------------------+--------+------------------------------------------+----------------+---------+
| Name | Health | Location | Chunk | Region |
+---------------------------------------------------+--------+------------------------------------------+----------------+---------+
| Alpine Buck | 20.00 | x = 2525.80, y = 82.00, z
+--------+------------+--------------+----------+
| Dim ID | Chunk | Block pos | Entities |
+--------+------------+--------------+----------+
| 0 | 0, -172 | 0, -2752 | 0 |
| 0 | 0, -173 | 0, -2768 | 0 |
| 0 | 0, -174 | 0, -2784 | 0 |
| 0 | 0, -175 | 0, -2800 | 0 |
| 0 | 0, -176 | 0, -2816 | 0 |
| 0 | 0, -178 | 0, -2848 | 0 |
| 0 | 0, -179 | 0, -2864 | 0 |