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 / immibisInstaller.groovy
Last active December 20, 2015 14:19
Script to Install immibis Mods
def downloadMod = { String name, String url ->
println 'Installing ' + name
ModInstaller.download url, modsDir.absolutePath + ' ' + name.replace(' ', '')
modsInstalled++
}
downloadMod 'Immibis Core', 'http://dl.dropboxusercontent.com/u/2944265/mods/autobuilt/files/immibis-core-56.0.3.jar'
downloadMod 'RedLogic', 'http://dl.dropboxusercontent.com/u/2944265/mods/autobuilt/files/redlogic-56.0.2.jar'
downloadMod 'Dimensional Anchors', 'http://dl.dropboxusercontent.com/u/2944265/mods/autobuilt/files/dimensional-anchor-56.0.1.jar'
@azenla
azenla / ModInstaller.groovy
Created August 3, 2013 05:59
ModInstaller bug fix
#!/usr/bin/env 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 configFile = new File(mcDir, '/installer.cfg')
def ConfigObject config = null
@azenla
azenla / vmLog.log
Created August 4, 2013 01:51
Java being stupid and starting a VM for printing its version O.O
kendfin@s1:~$ java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
kendfin@s1:~$
@azenla
azenla / fail.log
Created August 5, 2013 19:20
Failure to Start ComputerCraft Forge IntellIJ
2013-08-05 15:18:46 [INFO] [STDOUT]
2013-08-05 15:18:46 [SEVERE] [Minecraft-Client] Realms: Invalid session id
2013-08-05 15:18:50 [INFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2
2013-08-05 15:18:50 [INFO] [Minecraft-Server] Generating keypair
2013-08-05 15:18:50 [INFO] [ForgeModLoader] Loading dimension 0 (Testing) (net.minecraft.server.integrated.IntegratedServer@30392164)
2013-08-05 15:18:50 [INFO] [ForgeModLoader] Loading dimension 1 (Testing) (net.minecraft.server.integrated.IntegratedServer@30392164)
2013-08-05 15:18:50 [INFO] [STDERR] java.lang.NullPointerException
2013-08-05 15:18:50 [INFO] [STDERR] at dan200.computer.core.JarMount$FileInZip.getParent(JarMount.java:102)
2013-08-05 15:18:50 [INFO] [STDERR] at dan200.computer.core.JarMount.<init>(JarMount.java:164)
2013-08-05 15:18:50 [INFO] [STDERR] at dan200.ComputerCraft.createResourceMount(ComputerCraft.java:415)
@azenla
azenla / CommandWhitelist.java
Created August 10, 2013 18:53
CommandWhitelist
package org.minetweak.command;
import net.minecraft.server.MinecraftServer;
import org.minetweak.Minetweak;
import org.minetweak.chat.TabCompletion;
import org.minetweak.chat.TextColor;
import org.minetweak.entity.Player;
import org.minetweak.permissions.PlayerWhitelist;
import org.minetweak.permissions.ServerOps;
import org.minetweak.server.Server;
@azenla
azenla / updateChromium.sh
Created August 10, 2013 19:36
Update Chromium Script
#!/bin/sh
rm -rf chrome-linux
wget https://download-chromium.appspot.com/dl/Linux_x64
unzip Linux_x64
rm Linux_x64
@azenla
azenla / warps.json
Created August 11, 2013 00:42
Warps JSON
{
"Test": {
"x": -515,
"y": 83,
"z": 245
}
}
@azenla
azenla / EchoServer.groovy
Created August 11, 2013 02:09
Simple Echo Server in Groovy
def server = new ServerSocket(2050)
while (!server.isClosed()) {
server.accept({
def input = it.inputStream.newReader()
def output = new PrintStream(it.outputStream)
while (!it.isClosed()) {
output.println(input.readLine())
}
})
}
@azenla
azenla / launcher.json
Last active December 20, 2015 22:09
Complete Launcher Configuration Example
{
"name": "Minetweak",
"announcement": "Advanced Launcher Configuration",
"main": "org.minetweak.Start",
"types": ["stable", "beta", "dev"],
"libraries": [
{
"name": "Minetweak",
"type": "stable",
"file": "Minetweak.jar",
@azenla
azenla / ForgeLauncher.json
Last active December 20, 2015 22:09
Forge with IC2
{
"name": "Forge with IC2",
"main": "net.minecraft.server.MinecraftServer",
"libraries": [
{
"name": "Forge",
"file": "forge-universal.jar",
"url": "http://files.minecraftforge.net/minecraftforge/minecraftforge-universal-1.6.2-9.10.0.819.jar"
},
{