See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
Fabric is the "modern" Minecraft modding software that is very modular.
We use Fabric in this guide so install it by going to https://fabricmc.net/use/ Download the .jar or .exe and run it.
Below is a list of performance and utility mods to make your Minecraft experience better and most importantly smooth.
The list is in order of most importance and they all work together including what they do with why to use them.
| APP_ENV=testing | |
| APP_KEY=SomeRandomString | |
| DB_CONNECTION=testing | |
| DB_TEST_USERNAME=root | |
| DB_TEST_PASSWORD= | |
| CACHE_DRIVER=array | |
| SESSION_DRIVER=array | |
| QUEUE_DRIVER=sync |
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
| # Builds NGINX from the QUIC+HTTP/3 development branch | |
| # - Based on the official NGINX docker image, including all modules built by default | |
| # - OpenSSL replaced with LibreSSL to support QUIC's TLS requirements (statically linked) | |
| # | |
| # docker build --no-cache -t nginx:quic . | |
| # docker run -d -p 443:443 -p 443:443/udp nginx:quic | |
| # | |
| # Note that a suitable configuration file and TLS certificates are required for testing! | |
| # See <https://quic.nginx.org/readme.html> for more info |
| #!/bin/bash | |
| ### Google Domains provides an API to update a DNS "Syntheitc record". This script | |
| ### updates a record with the script-runner's public IP, as resolved using a DNS | |
| ### lookup. | |
| ### | |
| ### Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
| ### Synthetic Records: https://support.google.com/domains/answer/6069273 | |
| USERNAME="" |
There are 11 new "PatchOperation" actions we can perform to modify Defs without copying the whole thing. This in turn improves mod compatability dramatically - it allows two mods to modify different parts of the same Def without conflict. This guide only describes the basics of each operation available to us.
Patches go in xml files in a subfolder named "Patches" in your mod folder (So "MyMod\Patches", just like you might have "MyMod\Defs" or "MyMod\Textures"). Example.
Each PatchOperation has an "xpath" node, which should contain an xpath selector for the xml node(s) that the operation should affect. This is not an xpath tutorial. If you don't know xpath, not my problem. But minimurgle has you covered!
To illustrate the operations, I'll use this simple example def:
<DesignationCategoryDef>| SELECT pg_database_size('notestock') AS db_size -- Any DB Name | |
| , ROUND(100 * SUM( | |
| CASE (a.n_live_tup + a.n_dead_tup) WHEN 0 THEN 0 | |
| ELSE c.relpages * (a.n_dead_tup / (a.n_live_tup + a.n_dead_tup)::numeric) | |
| END | |
| ) / SUM(c.relpages), 2) AS garbage_raito | |
| FROM pg_class AS c | |
| JOIN pg_stat_all_tables AS a ON(c.oid = a.relid) | |
| WHERE relpages > 0 |
| #!/bin/bash | |
| # ===================================================================== | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # Version 2, December 2004 | |
| # | |
| # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
| # | |
| # Everyone is permitted to copy and distribute verbatim or modified | |
| # copies of this license document, and changing it is allowed as long |