Skip to content

Instantly share code, notes, and snippets.

View Techcable's full-sized avatar
🇺🇸
Procrastinating

Techcable

🇺🇸
Procrastinating
View GitHub Profile
@Techcable
Techcable / gist:de37e364ab35194df3e8
Created May 17, 2015 20:59
Minecraft Coder Pack License (Extracted from MCP Readme)
License and terms of use.
=========================
No warranties. If MCP does not work for you, or causes any damage, it's your problem. Use it at own risk.
You are allowed to:
- Use MCP to decompile the Minecraft client and server jar files.
- Use the decompiled source code to create mods for Minecraft.
- Recompile modified versions of Minecraft.
- Reobfuscate the classes of your mod for Minecraft.
@Techcable
Techcable / gist:b23a558953f0b02bf888
Last active August 29, 2015 14:22
My favorite jokes from icndb.com
There are no steroids in baseball. Just players %s has breathed on.
The %s military unit was not used in the game Civilization 4, because a single %s could defeat the entire combined nations of the world in one turn. | nerdy, games
Faster than a speeding bullet... More powerful than a locomotive... Able to leap tall buildings in a single bound... These are some of %s's warm-up exercises.
Teenage Mutant Ninja Turtles is based on a true story: %s once swallowed a turtle whole, and when he pooped it out, the turtle was six feet tall and had learned karate. | fiction
If you spell %s in Scrabble, you win. Forever.
There is no theory of evolution, just a list of creatures %s allows to live. | nerdy, science
%s can win a game of Connect Four in only three moves.
The Great Wall of China was originally created to keep %s out. It failed miserably. | history
%s once kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean. | n
package com.empireminecraft.commands;
import com.empireminecraft.commands.annotation.CommandAlias;
import com.empireminecraft.commands.annotation.CommandPermission;
import com.empireminecraft.commands.annotation.Default;
import com.empireminecraft.commands.annotation.Subcommand;
import com.empireminecraft.config.EmpireServer;
import com.empireminecraft.config.PlayerSettingKey;
import com.empireminecraft.config.language.MiscLang;
import com.empireminecraft.data.EmpireUser;
#!/bin/bash
#
# /etc/init.d/techbot
#
# techbot Manages techbot
#
### BEGIN INIT INFO
# Provides: techbot
# Required-Start: $local_fs $remote_fs screen-cleanup
# Required-Stop: $local_fs $remote_fs
@Techcable
Techcable / LICENSE
Last active October 27, 2025 20:45
All rights reserved License
All Rights Reserved
Copyright (c) ${project.inceptionYear} ${owner}
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
@Techcable
Techcable / v1_8_R3.txt
Last active August 29, 2015 14:25
Techcable's Mappings (sensible names for CraftBukkit mappings)
======================
IUpdatePlayerListBox -- Tickable
-------------------
c()V -- tick()V -- Ticks this tickable
=====================
TileEntity
implements IUpdatePlayerListBox -- Tickable
=====================
TileEntityContainer
extends TileEntity
@Techcable
Techcable / profile.sh
Last active November 23, 2018 20:22
WarmRoast Wrapper
JAR_FILE=WarmRoast.jar
URL="http://builds.enginehub.org/job/warmroast/4523/download/warmroast-1.0.0-SNAPSHOT.jar"
SAMPLING_INTERVAL=10
if [ ! -e "$JAR_FILE" ];
then
echo attempting to download $JAR_FILE;
curl "$URL" > "$JAR_FILE";
fi;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.Logger;
import org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender;
import org.apache.logging.log4j.core.appender.FileManager;
import org.apache.logging.log4j.core.appender.OutputStreamManager;
import org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender;
import java.io.File;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
@Techcable
Techcable / invalidate.sh
Last active August 29, 2015 14:28
Session Invalidate
if [ $# -lt 2 ];
then
echo "Usage: {username} {password}"
echo "If your account is migrated, use your email as your username"
exit 1;
fi;
USERNAME=$1
PASSWORD=$2
REQUEST_DATA="{\"username\": \"$USERNAME\", \"password\": \"$PASSWORD\"}"
@Techcable
Techcable / EventExecutorFactory.java
Created September 2, 2015 06:30
ASM Bukkit Executors
package net.techcable.tacospigot;
import com.google.common.base.Preconditions;
import org.bukkit.event.Event;
import org.bukkit.event.EventException;
import org.bukkit.event.Listener;
import org.bukkit.plugin.EventExecutor;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;