Skip to content

Instantly share code, notes, and snippets.

@ubergarm
ubergarm / Topography-SkyIslandGeneratorV2-crash-report.md
Last active Sep 7, 2020
Topography SkyIslandGeneratorV2 NullPointerException Crash - Minecraft 1.12.2 - Modpack Sky Magic Islands
View Topography-SkyIslandGeneratorV2-crash-report.md

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 Aug 12, 2020
Script for ModTweaker issue report
View bloodmagic.zs
// 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 Jul 19, 2020
Configuration for Minecraft v1.12.2 mod `Topography` custom SkyIslandGeneratorV2() including Biomes O' Plenty and Thaumcraft biomes
View Sky_Magic_Islands.txt
// 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 Dec 20, 2019
proof of identification
View keybase.md

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 Feb 20, 2020
Poor Man's Fasting Mimicking Diet
View fmd.md

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 Apr 5, 2018
Adult Swim Chat ANALyzer
View adult-swim-chat.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View aws-lambda-stats.md

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 Mar 4, 2017
CLI Text Phrase Extraction using RAKE
View rake.py
#!/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
View dsock-server.c
/*
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
@ubergarm
ubergarm / async-client.py
Last active Jan 5, 2017
Python 3.5+ Async I/O Web Requests
View async-client.py
#!/usr/bin/env python3
## Run
# docker run --rm -it -v `pwd`:/app -w /app python:3.5.2-slim /bin/bash
# pip install aiohttp uvloop
# python async-client.py
## References
# http://aiohttp.readthedocs.io/en/stable/
# https://github.com/MagicStack/uvloop
You can’t perform that action at this time.