Skip to content

Instantly share code, notes, and snippets.

View GoryMoon's full-sized avatar

Gustaf Järgren GoryMoon

  • Gothenburg, Sweden
  • 00:00 (UTC +02:00)
View GitHub Profile
@GoryMoon
GoryMoon / falsehoods-programming-time-list.md
Created February 29, 2024 10:38 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@GoryMoon
GoryMoon / falsehoods-programming-time-list.md
Created February 29, 2024 10:38 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@GoryMoon
GoryMoon / toolsystem.md
Created February 2, 2022 16:56 — forked from gigaherz/toolsystem.md
Explanation of the new tool system

So... You have updated to latest forge and harvestTool, harvestLevel, ToolType, ... are all gone. AAA PANIC!

Here's how to fix it:

Blocks

First, Remove the harvestTool and harvestLevel calls from the block properties.

Then, add the blocks to the relevant tags. You can use datagen, or make the jsons yourself. Datagen is more future-proof.

@GoryMoon
GoryMoon / also_works.py
Last active April 21, 2021 15:39
This works now
import asyncio
import threading
from flask import Flask
app = Flask(__name__)
def init_twitch_connection(loop):
asyncio.set_event_loop(loop)
--- old.txt 2019-07-10 12:23:12.000000000 +0200
+++ latest.txt 2019-07-10 12:22:48.000000000 +0200
@@ -1,9 +1,8 @@
/Users/gustaf/Library/Application Support/minecraft/runtime/jre-x64/jre.bundle/Contents/Home/bin/java
-XstartOnFirstThread
--Xss1M
--Djava.library.path=/var/folders/n0/jwv5_b_94l58s4q_8k1v617c0000gn/T/3a51-5c6a-dfcb-e13d
+-Djava.library.path=/var/folders/n0/jwv5_b_94l58s4q_8k1v617c0000gn/T/b8fb-1f70-92a0-62b2
-Dminecraft.launcher.brand=minecraft-launcher
--Dminecraft.launcher.version=2.1.3677
{
"_comment_": [
"Please do not automate the download and installation of Forge.",
"Our efforts are supported by ads from the download page.",
"If you MUST automate this, please consider supporting the project through https://www.patreon.com/LexManos/"
],
"id": "1.14.2-forge-26.0.25",
"time": "2019-06-13T02:31:15+00:00",
"releaseTime": "2019-06-13T02:31:15+00:00",
"type": "release",
[02Jun2019 03:05:56.843] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevserver, --fml.mcpVersion, 20190213.203750, --fml.mcVersion, 1.13.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 25.0.215]
[02Jun2019 03:05:56.849] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_201
[02Jun2019 03:05:56.915] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,fmldevclient,fmldevserver,fmluserdevserver,testharness,fmlclient,fmluserdevclient,fmlserver]
[02Jun2019 03:05:56.929] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [fml]
[02Jun2019 03:05:56.947] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp]
[02Jun2019 03:05:56.968] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [
"C:\Program Files\Java\jdk1.8.0_201\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:52579,suspend=y,server=n -Dforge.logging.console.level=debug -Dforge.logging.markers=CORE,LOADING,FMLNETWORK,EVENTBUS,FMLHANDSHAKE -Dforge.logging.noansi=false -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump "-Dos.name=Windows 10" -Dos.version=10.0 -javaagent:C:\Users\Gustaf\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\191.7479.19\plugins\Groovy\lib\agent\gragent.jar -javaagent:C:\Users\Gustaf\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\191.7479.19\lib\rt\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_201\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\jaccess.jar;C:\P
Tier 1
Oak
Spruce
Birch
Jungle
Acacia
Dark Oak
Sandstone
Brick
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \