Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott M. Barbour smbarbour

View GitHub Profile
View gist:b0c0a18fd9b0e552ad484821a028c8dc
<?xml version="1.0" encoding="UTF-8"?>
<ServerPack version="3.4" xmlns="http://www.mcupdater.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mcupdater.com http://files.mcupdater.com/ServerPackv2.xsd">
<Server id="newserver" abstract="false" name="New Server" newsUrl="about:blank" version="1.16.5" generateList="true" autoConnect="true" revision="" mainClass="net.minecraft.launchwrapper.Launch" launcherType="Vanilla">
<Import>null</Import>
</Server>
</ServerPack>
View keybase.md

Keybase proof

I hereby claim:

  • I am smbarbour on github.
  • I am smbarbour (https://keybase.io/smbarbour) on keybase.
  • I have a public key whose fingerprint is 778B 2D5E 60E9 05AE 8EE6 F3FB 3B74 8407 B9FD 513A

To claim this, I am signing this object:

View agricraft.zs
import mods.agricraft.growing.BaseBlock;
BaseBlock.set(<AgriCraft:seedAurigold>, <minecraft:gold_block>, 1, true);
BaseBlock.set(<AgriCraft:seedCuprosia>, <ThermalFoundation:Storage:0>, 1, true);
BaseBlock.set(<AgriCraft:seedDiamahlia>, <minecraft:diamond_block>, 1, true);
BaseBlock.set(<AgriCraft:seedEmeryllis>, <minecraft:emerald_block>, 1, true);
BaseBlock.set(<AgriCraft:seedFerranium>, <minecraft:iron_block>, 1, true);
BaseBlock.set(<AgriCraft:seedJaslumine>, <ImmersiveEngineering:storage:1>, 1, true);
BaseBlock.set(<AgriCraft:seedLapender>, <minecraft:lapis_block>, 1, true);
BaseBlock.set(<AgriCraft:seedNiccissus>, <ThermalFoundation:Storage:4>, 1, true);
@smbarbour
smbarbour / ClientProxy.java
Last active Oct 15, 2016
ItemColors implementation
View ClientProxy.java
package com.example.examplemod;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.FMLLog;
/**
* Created by sbarbour on 4/7/16.
View gist:dbfc57e2b1f4cb95b30f
CREATE OR REPLACE FUNCTION meta_find_references(tablename text)
RETURNS TABLE (type text, name text)
AS $$
SELECT 'View', table_name FROM information_schema.views WHERE view_definition ~* $1
UNION
SELECT 'Function', routine_name FROM information_schema.routines WHERE routine_definition ~* $1
ORDER BY 1, 2
$$
LANGUAGE SQL;
View fml-client-latest.log
This file has been truncated, but you can view the full file.
[01:34:55] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[01:34:55] [main/INFO] [FML/]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading
[01:34:55] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_72, running on Linux:amd64:3.19.0-49-generic, installed at /usr/lib/jvm/java-8-oracle/jre
@smbarbour
smbarbour / partitioning.sql
Last active Jan 29, 2016
PostgreSQL inter-related table partitioning
View partitioning.sql
CREATE TABLE testsummary
(
rowid serial NOT NULL,
rundate date,
data text,
PRIMARY KEY (rowid)
);
CREATE TABLE testdetail
(
@smbarbour
smbarbour / Meddle.xml
Created Dec 10, 2015
Including Meddle in MCUpdater modpacks
View Meddle.xml
<Module name="Meddle" id="meddle">
<URL priority="0">http://www.fybertech.net/maven/net/fybertech/meddle/1.3/meddle-1.3.jar</URL>
<Required>true</Required>
<ModType order="1" launchArgs="--tweakClass net.fybertech.meddle.Meddle">Library</ModType>
<MD5>20309756363e294c947ea18f73a60430</MD5>
<Size>11867</Size>
<Submodule id="launchwrapper" name="Mojang (LaunchWrapper)">
<URL priority="0">https://libraries.minecraft.net/net/minecraft/launchwrapper/1.11/launchwrapper-1.11.jar</URL>
<URL priority="1">http://files.mcupdater.com/lib/launchwrapper-1.11.jar</URL>
<MD5>189acaecbe31eeb4366bca7ba17d7496</MD5>
@smbarbour
smbarbour / convert_colors.pl
Created Aug 4, 2015
Convert MapWriter block color file for use with AnvilMapper
View convert_colors.pl
#!/usr/bin/perl
use strict;
open(IN, "<", $ARGV[0]);
my @fields;
while(<IN>) {
@fields = split(' ', $_);
if ($fields[1] ne '*') {
if ($fields[0] eq 'biome') {
View gist:7c66e6609e7547783001
[22:31:14] [Netty IO #2/ERROR] [FML/]: NetworkDispatcher exception
java.lang.IllegalArgumentException: Payload may not be larger than 2097050 bytes
at net.minecraft.network.play.server.S3FPacketCustomPayload.<init>(S3FPacketCustomPayload.java:33) ~[gr.class:?]
at cpw.mods.fml.common.network.internal.FMLProxyPacket.toS3FPacket(FMLProxyPacket.java:125) ~[FMLProxyPacket.class:?]
at cpw.mods.fml.common.network.handshake.NetworkDispatcher.write(NetworkDispatcher.java:436) ~[NetworkDispatcher.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.writeAndFlush(DefaultChannelHandlerContext.java:688) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.wr