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 / build.gradle
Created July 31, 2013 12:56
GMCP Test File
apply plugin: 'java'
apply plugin: 'maven'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.github.abrarsyed.gmcp:GMCP:0.6.2'
}
}
@azenla
azenla / build.gradle
Created July 31, 2013 13:02
GMCP Failiure
[alex@ArchKen MCore]$ gradle jar -s CLI
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'MCore'.
> Failed to notify project evaluation listener.
> argo.saj.InvalidSyntaxException: At line 1, column 1: Expected either [ or { but got [￿].
* Try:
@azenla
azenla / asString.groovy
Created July 31, 2013 17:19
:) Turns an ArrayList into a string, even though its not needed since Groovy has .join(' ')
ArrayList.metaClass.asString = { ->
def builder = new StringBuilder()
delegate.eachWithIndex { object, index -> builder.append(object) ; if (!(index==delegate.size() - 1)) builder.append(' ')}
return builder.toString()
}
@azenla
azenla / bot.groovy
Last active December 20, 2015 11:59
Groovy Config Example for KenBot v3
server {
host = 'irc.esper.net'
port = 6667
nickname = 'KenBotv3'
}
bot {
channels = ['#KenBot', '#DirectMyFile']
}
@azenla
azenla / BotListener.groovy
Last active December 20, 2015 11:59
KenBot v3 base code
package com.directmyfile.kenbot
import org.pircbotx.hooks.ListenerAdapter
import org.pircbotx.hooks.events.MessageEvent
class BotListener extends ListenerAdapter {
def prefix = '!'
@Override
def void onMessage(MessageEvent event) {
def msg = event.message.trim()
@azenla
azenla / fail.log
Created August 1, 2013 02:34
GMCP Failiure
(raring)kaendfinger@localhost:~/FlashDrive/Code/Java/MCore$ ./gradlew jar
:getForge UP-TO-DATE
:doFMLMappingPreProcess UP-TO-DATE
:resolveMinecraftStuff
:getMinecraft UP-TO-DATE
:doJarPreProcess UP-TO-DATE
:extractMisc UP-TO-DATE
:getAssets UP-TO-DATE
:unpackNatives UP-TO-DATE
:decompileMinecraft
@azenla
azenla / OptiForgeError.txt
Created August 1, 2013 20:19
Setup Error OptiForge
HEAD is now at 6397939 Merge pull request #665 from copyboy/master
HEAD is now at 10b16d3 Use json 2.9.1 nightly for OSX in release json like vanilla does.
=================================== Setup Start =================================
Setting up Forge ModLoader
Running command:
['ant', 'jenkinsbuild']
Traceback (most recent call last):
File "setup.py", line 113, in <module>
main()
File "setup.py", line 33, in main
@azenla
azenla / mods.json
Last active December 20, 2015 14:09
A JSON List of Common Mods and their downloads for my Mod Installer Groovy script
{
"BuildCraft": "http://nallar.me/buildservice/job/Buildcraft/319/artifact/bin/buildcraft-universal-1.6.2-3.7.1.215.319.jar",
"ComputerCraft": "http://www.mediafire.com/download/cvj77lab70lvnv9/ComputerCraft1.55.zip",
"Forestry": "https://dl.dropboxusercontent.com/u/44760587/forestry/previews/2.2.9.9/forestry-A-2.2.9.9.jar",
"MystCraft": "http://binarymage.com/mystcraft/publish/mystcraft-uni-1.6.2-0.10.6.00.zip",
"RailsOfWar": "https://dl.dropboxusercontent.com/s/vuwkx1fsr8acnqs/RoW-1.6.2-13.07.30-0.zip",
"ImmibisMods": "https://gist.github.com/kaendfinger/6145247/raw/immibisInstaller.groovy"
}
@azenla
azenla / modInstaller.groovy
Last active December 20, 2015 14:09
Example Mod Installer for Forge in Groovy
import groovy.json.JsonSlurper
def mcDir = new File(System.getProperty('user.home') + '/.minecraft/')
def modsDir = new File(mcDir, 'mods')
def mods = [:]
def modsToDownload = args.toList()
def download = { String address, String path ->
def file = new FileOutputStream(path)
def out = new BufferedOutputStream(file)
@azenla
azenla / installTest.groovy
Created August 3, 2013 04:31
Test Install Script for Mod Installer
println 'Test Succeeded'