Skip to content

Instantly share code, notes, and snippets.

@ubergarm
ubergarm / moodbar-possible-issue.md
Created October 25, 2020 20:38
RimWorld 1.2 MP desync from Arbiter

RimWorld 1.2 MP desync from Arbiter

While testing the MP compatibility of Life Support and Death Rattle mods I was harvesting some organs from a "volunteer".

Unexpectedly, due to the stacking mood debuff, another colonist went into a bad mood from Snap Out and a colonist successfully calmed them down. In just the next moment the game desynced from arbiter and I noticed a null exception trace in the player.log file.

Is there a known issue/bug between Snap Out (configured w/ Enable Calming Aggressive Pawns) and CMColorCodedMoodBar???

Just a guess... my mod load xml is attached below too.

@ubergarm
ubergarm / Topography-SkyIslandGeneratorV2-crash-report.md
Last active September 7, 2020 15:34
Topography SkyIslandGeneratorV2 NullPointerException Crash - Minecraft 1.12.2 - Modpack Sky Magic Islands

Context

Its a fairly infrequent bug I've come across while developing Sky Magic Islands modpack, but has happened about 3 times now where I've been on my multiplayer server flying a Davinci's Airship around a new area (where i haven't pre-generated chunks) and the server will crash and exit with this error.

In addition I have to edit my player dat file and change my position or it will happen every time on rejoin. Finally if I then go back to said Davinci's Vessel airship and try to mount the helm again it will crash again, so I just tear down the airship after editing my player file. This most recent time the airship was actually gone and just by going into the area again afterwards caused the crash again.

I have changed my topography config a few times while using the same world file. This has caused some odd things like islands cut in half (as I changed the size of islands as well as the setRegionSize() etc.

@ubergarm
ubergarm / bloodmagic.zs
Last active August 12, 2020 21:10
Script for ModTweaker issue report
// THIS SCRIPT DOES NOT WORK AS INTENDED, IT IS FOR AN ISSUE FILED w/ MODTWEAKER!
// Blood Magic Mod
import crafttweaker.data.IData;
import crafttweaker.item.IIngredient;
import crafttweaker.item.IItemStack;
import crafttweaker.item.IItemCondition;
import crafttweaker.oredict.IOreDictEntry;
// Blood Altar
@ubergarm
ubergarm / Sky_Magic_Islands.txt
Last active April 8, 2021 18:04
Configuration for Minecraft v1.12.2 mod `Topography` custom SkyIslandGeneratorV2() including Biomes O' Plenty and Thaumcraft biomes
// July 19. 2020
// https://gist.github.com/ubergarm/d43e59e3ee51a5e67aec8aaa86c5afab
// Configuration for Minecraft v1.12.2 mod `Topography` custom SkyIslandGeneratorV2() including Biomes O' Plenty and Thaumcraft biomes
// Based on Topography's default `Basic_Sky_Islands.txt` https://www.curseforge.com/minecraft/mc-mods/topography
// Version Info:
// - Minecraft v1.12.2
// - Mohist-1.12.2-7bb5453-server.jar
// - forge-14.23.5.2854
// - Topography-1.12.2-1.14.2.jar
// - BiomesOPlenty-1.12.2-7.0.1.2441-universal.jar
@ubergarm
ubergarm / keybase.md
Created December 20, 2019 15:47
proof of identification

Keybase proof

I hereby claim:

  • I am ubergarm on github.
  • I am ubergarm (https://keybase.io/ubergarm) on keybase.
  • I have a public key ASBg8Q9XAFbXKP07v3rbaouf4vkARLQ7FwQ1sgwj5PiERQo

To claim this, I am signing this object:

@ubergarm
ubergarm / fmd.md
Last active February 20, 2020 19:42
Poor Man's Fasting Mimicking Diet

Poor Man's Fasting Mimicking Diet

The goal is to achieve as safely and comfortably as possible a Seyfried's Glucose Ketone Index (GKI) less than 1.0 to improve health over a 5 day period.

Date

Sunday May 6 - Thursday May 10 2018

Lead Up

@ubergarm
ubergarm / adult-swim-chat.ipynb
Created April 5, 2018 21:25
Adult Swim Chat ANALyzer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ubergarm
ubergarm / aws-lambda-stats.md
Last active March 4, 2020 15:06
AWS-lambda-stats

AWS lambda status

Some info about what kind of server you get inside a lambda function on AWS.

memory_size = 1536

Linux

$ uname -a
Linux ip-10-25-140-177 4.9.43-17.39.amzn1.x86_64 #1 SMP Fri Sep 15 23:39:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
@ubergarm
ubergarm / rake.py
Last active March 4, 2017 21:31
CLI Text Phrase Extraction using RAKE
#!/usr/bin/env python3
# Example Usage:
# $ curl -s https://sherlock-holm.es/stories/plain-text/croo.txt | ./rake.py --limit=10 --minscore=5
# Download SmartStopList.txt from:
# https://github.com/fabianvf/python-rake
import sys
import RAKE
import argparse
# Accept input from stdin or filename
/*
Minimal HTTP Response Server Test
Modified from [sustrik/dsock/tutorial/step3.c]
Test with `wrk -t2 -c100 -d30s localhost:5555`
Copyright (c) 2016 Martin Sustrik
Copyright (c) 2017 John W. Leimgruber III
Permission is hereby granted, free of charge, to any person obtaining a copy