Skip to content

Instantly share code, notes, and snippets.

View azenla's full-sized avatar
🏳️‍⚧️
cabbit mode

Alex Zenla azenla

🏳️‍⚧️
cabbit mode
View GitHub Profile
@azenla
azenla / Bundle.java
Created June 11, 2013 12:59
The DirectMyFile Core Bundle Class
package com.directmyfile;
import java.util.HashMap;
import java.util.Set;
public class Bundle {
protected HashMap<String, Object> objects;
public Bundle() {
this.objects = new HashMap<String, Object>();
@azenla
azenla / WorkerTest.groovy
Last active December 18, 2015 10:49
Groovy PowerThread
package jpower.thread.test
import jpower.thread.WorkerThread
def testMethod = {
println("Test Thread Method Invoked!")
}
WorkerThread thread = new WorkerThread(testMethod)
Thread javaThread = thread.execute()
package jpower.thread
class WorkerThread implements Runnable {
def closure
WorkerThread(Closure closure) {
this.closure = closure
}
def execute() {
@azenla
azenla / core.txt
Created June 19, 2013 17:11
List of Core Packages for Golden Arch
acl
archlinux-keyring
attr
autoconf
automake
b43-fwcutter
bash
binutils
bison
bridge-utils
@azenla
azenla / ConnectionEventHandler.java
Last active December 18, 2015 18:39
TO PROVE I'M NOT STUPID!
package com.directmyfile.gcp.client.core;
import com.directmyfile.gcp.client.Main;
import com.directmyfile.gcp.client.connection.ConnectionHandler;
import com.directmyfile.gcp.client.data.DataHelper;
import com.directmyfile.gcp.client.event.*;
import com.directmyfile.gcp.client.gcp.GCPServerProfile;
import com.directmyfile.gcp.client.gcp.*;
import jpower.socket.EventHandler;
import jpower.socket.JPowerSocket;
@azenla
azenla / GCPHelper.java
Created June 20, 2013 23:18
GCPHelper
package com.directmyfile.gcp.client.gcp;
import com.directmyfile.gcp.client.Main;
public class GCPHelper {
public static GCPLine getLineFromLine(String line) {
return new GCPLine(line);
}
public static void changeNickname(String newNickname) {
@azenla
azenla / ConsoleHandler.java
Created June 20, 2013 23:28
ConsoleHandler
package com.directmyfile.gcp.client;
import com.directmyfile.gcp.client.connection.ConnectionHandler;
import com.directmyfile.gcp.client.gcp.GCPHelper;
import org.fusesource.jansi.Ansi;
import org.fusesource.jansi.AnsiConsole;
import java.io.IOException;
import java.io.PrintStream;
import java.util.NoSuchElementException;
[alex@ArchKen Debug]$ mono --profile=log Server.exe
Prefering Not to Run As SuperUser, but continuing due to kaendfinger's ideas!
Unhandled Exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type `System.Func<System.Runtime.CompilerServices.CallSite,System.Type,object,JsonConfig.ConfigObject,object>' to `JsonConfig.ConfigObject'
at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object) <0x000e3>
at System.Dynamic.UpdateDelegates.UpdateAndExecute1<object, JsonConfig.ConfigObject> (System.Runtime.CompilerServices.CallSite,object) <0x003bf>
at JsonConfig.Config.ApplyJsonFromFileInfo (System.IO.FileInfo,JsonConfig.ConfigObject) <0x001bb>
at JsonConfig.Config.ApplyJsonFromPath (string,JsonConfig.ConfigObject) <0x0004b>
at GcpD.Core.Entry.Start.Run (string[]) <0x000c7>
@azenla
azenla / kenbot.py
Last active December 18, 2015 20:48
Python KenBot API
import os
import json
import urllib2
import sys
codeCodes = {
'black': '0;30', 'bright gray': '0;37',
'blue': '0;34', 'white': '1;37',
'green': '0;32', 'bright blue': '1;34',
'cyan': '0;36', 'bright green': '1;32',
@azenla
azenla / strack.trace.minetweak.txt
Created June 23, 2013 02:17
StackTrace of Minetweak
[alex@ArchKen libs]$ java -jar Minetweak.jar
Success is very tasty.
Minetweak v0.0.2 using Minecraft v1.5.2
To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
at net.minecraft.src.AchievementMap.<init>(AchievementMap.java:20)
at net.minecraft.src.AchievementMap.<clinit>(AchievementMap.java:11)
at net.minecraft.src.StatBase.registerStat(StatBase.java:61)