Skip to content

Instantly share code, notes, and snippets.

View RoboMWM's full-sized avatar

RoboMWM

View GitHub Profile
@RoboMWM
RoboMWM / billy.sh
Last active July 15, 2021 23:08
from ZombieChickenMan and billy
#!/bin/bash
# A place to store build information
DIR=~/.purpur/
FILE=$DIR"build"
# Get the latest version from pl3x api
echo "Checking for latest version ..."
VERSION=`curl -sN 'https://api.pl3x.net/v2/purpur/' | jq -r '.versions[0]'`
echo "Latest version is $VERSION"
[12:20:56] ~Purpur: <BillyGalbreath> oooooh, poems.. i got one
[12:20:56] ~Purpur: <BillyGalbreath> Roses are red,
[12:20:57] ~Purpur: <BillyGalbreath> Violets are blue,
[12:20:59] ~Purpur: <BillyGalbreath> Unexpected { on line 32
@RoboMWM
RoboMWM / merge_upstream.sh
Last active January 16, 2021 00:39
How to merge upstream
# With Tuinity
# Fetch Paper upstream
./tunity up up
# Fetch Tuinity
./tuinity up
# Apply Tuinity patches on top of Paper (or is it Tuinity and Paper on top of CB?)
./tuinity patch
# build jar
./tuinity build
# rebuild patches so the diff looks good (not needed if not publishing)
@RoboMWM
RoboMWM / GP_SQL_TO_FILE.py
Created April 28, 2020 04:17 — forked from ar00n/GP_SQL_TO_FILE.py
Migrate GriefPrevention from SQL to file directory storage.
import mysql.connector
import os, sys
from datetime import datetime
import time
path = "GriefPreventionData"+time.strftime("%Y%m%d-%H%M%S")
try:
os.mkdir(path)
os.mkdir(path+"/PlayerData")
@RoboMWM
RoboMWM / 2020_03_08.txt
Created March 8, 2020 16:45
496 logs from multiple days
23:57 Delivering 41 blocks to ImLenaMoon
23:57 Delivering 41 blocks to martinfel
23:57 Looking for expired claims. Checking data for dcc0235a-5eb8-308d-8ca2-de8dc146e36e
23:57 Delivering 41 blocks to carlosvf91
23:57 Delivering 41 blocks to ArtAngel686
23:57 Delivering 41 blocks to PNDPAULA
23:57 Delivering 41 blocks to Ovejocromo
23:57 Delivering 41 blocks to MrJegrata
23:57 Delivering 41 blocks to MikeST_
23:57 Delivering 41 blocks to By_Luziimilk
gist needs word wrap
<Billy> heres insurance in a nutshell, for you youngins. pre-obama insurance everything costed $20. it was ~$20/week for the plan. $20 to do to the doctor. $20 for prescriptions. etc etc. ($50 for emergency room visit). post obama its over $1000/month for the plan. everything is out of pocket until you hit $2000-5000 for the year, then insurance will pick up and cover like %60 of the costs so you're still paying %40 out of pocket for everything. presciptions are covered by the "savings account" thats masked as a healthcare card that you have to put money into it every paycheck for it to grow.
[23:42:38] +DiscordBot: <ThatOneDude> I dunno...my workplace provided coverage is pretty good and not that expensive. About $28/week, $20 copay for most doctor visits, $10 generic prescriptions, $50/month cap on insulin costs if I ever get diabetes, $100 copay for emergency room which I can get 15% off if I pay during the visit.
[23:42:53] +DiscordBot: <ThatOneDude> And they cover 90% after I've met
@RoboMWM
RoboMWM / treasuremapchest.log
Created October 13, 2019 05:17
bad bad mojang :c
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - git-Paper-210 (MC: 1.14.4) ---
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] The server has not responded for 60 seconds! Creating thread dump
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] ------------------------------
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] Server thread dump (Look for plugins here before reporting to Paper!):
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] The server is waiting on these chunks: [[( -30,-241) in 'world']]
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] ------------------------------
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] Current Thread: Server thread
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] PID: 41 | Suspended: false | Native: true | State: TIMED_WAITING
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] Stack:
2019-10-12 13:33:11 [Paper Watchdog Thread/ERROR] java.base/jdk.internal.misc.Unsafe.park(Native Method)
@RoboMWM
RoboMWM / _truncated.log
Last active September 13, 2019 17:36
EHM rain
01:16:23 true
01:29:55 false
02:24:35 true
02:42:54 false
04:35:33 true
04:49:25 false
05:37:17 true
05:56:08 false
08:07:20 true
08:19:27 false
@RoboMWM
RoboMWM / ok.java
Last active August 14, 2019 03:38
Playing with generics in java. A simple test of something implemented in https://github.com/AuthMe/ConfigMe. IMO, it's ok, but kinda results in the same effect as defining a method - since you have to specify the node's path as a string anyways. I guess it does save a little in the amount of lines per node. UPDATE: Ok I'm learning generics and I…
public class Property<T>
{
T value;
String key;
Property(String key, T value)
{
this.key = key;
this.value = value;
}
@RoboMWM
RoboMWM / gist:0c3e5502ab2003c3d477941e16aea0f1
Created March 2, 2019 21:02
wats up paper. Or spigot. Idk who to blame.
2019-03-02 05:12:56 [Server thread/WARN] java.lang.Throwable
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.Chunk.a(Chunk.java:735)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.World.entityJoinedWorld(World.java:1607)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.PlayerList.repositionEntity(PlayerList.java:1016)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.Entity.teleportTo(Entity.java:2677)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.Entity.a(Entity.java:2619)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.Entity.postTick(Entity.java:381)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.World.entityJoinedWorld(World.java:1569)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.World.g(World.java:1535)
2019-03-02 05:12:56 [Server thread/WARN] at net.minecraft.server.v1_13_R2.World.tickE