Skip to content

Instantly share code, notes, and snippets.

View DaMatrix's full-sized avatar

DaPorkchop_ DaMatrix

View GitHub Profile
@DaMatrix
DaMatrix / watch-iostat.sh
Last active May 4, 2025 14:32
bash: continuously updated iostat (like 'watch iostat') (inspired by https://jrs-s.net/2019/06/04/continuously-updated-iostat/)
#!/bin/bash
shopt -s extglob
NEWLINE=$'\n'
ANSI_ERASE_ENTIRE_SCREEN=$'\e[2J'
ANSI_RESET_CURSOR_POSITION=$'\e[H'
ANSI_CLEAR="${ANSI_ERASE_ENTIRE_SCREEN}${ANSI_RESET_CURSOR_POSITION}"
die() {

Keybase proof

I hereby claim:

  • I am damatrix on github.
  • I am daporkchop_ (https://keybase.io/daporkchop_) on keybase.
  • I have a public key ASCmfvyVY7B8B7BGYCBqrUukD_45Ws6xU_nBAx3v_smBdAo

To claim this, I am signing this object:

@DaMatrix
DaMatrix / example.json5
Created March 4, 2021 17:46
terra++ biome override example
[
{
"biome": "minecraft:hell",
"bounds": {
"minX": 5,
"maxX": 50,
"minZ": 5,
"maxZ": 50
},
"priority": 100.0
@DaMatrix
DaMatrix / Cubic Chunks: Vanilla+Bedrock Setup Guide.md
Last active February 22, 2021 17:52
Cubic Chunks: Vanilla+Bedrock Setup Guide

This guide assumes you already have a functional Minecraft Forge server with Cubic Chunks set up and running.

When editing configuration files, make sure to save the file before proceeding to the next step!

Before you begin: it is absolutely critical that you remove all client-side required mods from your server (aside from Cubic Chunks) so that a player with nothing other than Minecraft Forge and Cubic Chunks installed can join the server. If additional mods are required, vanilla players will not be able to connect!

Server Setup

  1. Download the latest version of Cubic Chunks from Jenkins. You want CubicChunks-<version>-SNAPSHOT-all.jar. image
@DaMatrix
DaMatrix / Structures.md
Last active October 1, 2020 09:54
Structures

Cloudburst Server - Standard Generator - Structure config format

generator/structure/minecraft/nether_fortress/structure.yml:

# Define the structure type.
# The structure type defines how the individual components will be placed.
# Valid values:
# - piece: freeform 3d structure
# - village: generates a road network on the surface and places components off to the sides
type: piece
@DaMatrix
DaMatrix / java-edition-biome-selection.txt
Last active March 27, 2020 15:55
Minecraft Java edition biome selection pipeline
GenLayerIsland
|
GenLayerFuzzyZoom
|
GenLayerAddIsland
|
GenLayerZoom
|
GenLayerAddIsland
|
#include "main.h"
volatile int frame = 0;
void vblank() {
frame++;
}
int main() {
touchPosition touchXY;
@DaMatrix
DaMatrix / start.bat
Last active February 4, 2018 12:33
> 10GB minecraft server
java -Xmx13G -Xms13G -XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:MaxGCPauseMillis=50 -XX:G1NewSizePercent=40 -XX:G1HeapRegionSize=32M -XX:G1MaxNewSizePercent=60 -XX:InitiatingHeapOccupancyPercent=25 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -XX:+UseLargePagesInMetaspace -jar forge-1.12.2-14.23.1.2556-universal.jar nogui