Skip to content

Instantly share code, notes, and snippets.

View allaryin's full-sized avatar

Ammon Lauritzen allaryin

  • Austin, TX
View GitHub Profile
@allaryin
allaryin / compile-ruby.sh
Created March 26, 2015 14:54
A simple script for installing the Ruby of your choice from source on Debian or similar Linux.
#!/bin/sh
PREFIX=/usr/local
RUBY_BIN=${PREFIX}/bin/ruby
_MAJOR=2
_MINOR=2
_MICRO=1
RUBY_VERSION=${_MAJOR}.${_MINOR}.${_MICRO}
@allaryin
allaryin / gist:a02ce3eb3b57ac927f7c
Last active August 29, 2015 14:13
mcu-server teaser
alauritzen@alauritzen-mpb:~/git/mcu-workspace/MCU-Server/build/libs$ ls
MCU-Server-3.3.12.jar
alauritzen@alauritzen-mpb:~/git/mcu-workspace/MCU-Server/build/libs$ java -jar MCU-Server-3.3.12.jar
Created default config file.
Jan 23, 2015 12:51:38 PM org.mcupdater.util.DownloadCache init
INFO: Initializing DownloadCache in /Users/alauritzen/Library/Application Support/MCUpdater/cache
MCUpdater Server v3.3.12
> quit
Goodbye.
alauritzen@alauritzen-mpb:~/git/mcu-workspace/MCU-Server/build/libs$ ls
public class Comment extends DAO
{
public static final String TABLE_NAME = "comments";
public static final String COLUMN_ID = "id";
public static final String COLUMN_COMMENT = "comment";
@Override
public static String[] getCreateSQL() {
return {
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
@allaryin
allaryin / generate-pack-template.sh
Last active January 3, 2016 00:09
Generate a useful baseline for building an MCU serverpack.
#!/bin/bash
FORGE_VERSION='9.11.1.965'
MC_VERSION='1.6.4'
SERVER_ID='example'
SERVER_NAME='Example Server'
SERVER_REVISION=`date +%Y%m%d.%H%M`
SERVER_ADDRESS=''
ICON_URL=''
@allaryin
allaryin / gist:8189626
Created December 30, 2013 22:57
mcu-cli first real test
minecraft@tiffany:~/mcu-test$ rm mcu-cache.json; php mcu-cli.php
[--] MCU-CLI.php Starting...
[--] Mon, 30 Dec 2013 16:55:42 -0600
[--] First time run detected, starting with fresh cache
[--] Read serverpack from http://files.mcupdater.com/example/SamplePack.xml
[--] Handling imports...
[--] Parsing import of 'forge' from http://files.mcupdater.com/example/forge.php?mc=1.6.4&forge=9.11.1.916...
[--] Got new version of forge, need update...
[--] Identified new pack version 1.6.4
[--] Performing update...
@allaryin
allaryin / minecraft-mcu.bat
Last active January 1, 2016 09:59
Sample bat file for launching MCUpdater.
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre8\bin\java.exe" -jar MCU-Bootstrap.jar
rem PAUSE
@allaryin
allaryin / couch-backup.sh
Last active December 27, 2015 12:29
Script for saving/restoring and synchronizing couchdb databases between multiple dev environments.
#!/bin/bash
set -e
COUCH_HOME="/cygdrive/c/Program Files (x86)/Apache Software Foundation/CouchDB"
#COUCH_HOME="/"
DATA_DIR='var/lib/couchdb'
SNAPSHOT_DIR='/home/ammon/couchdb.snapshots'
REPLICATION_DBS='repltest repltest_2'
REPLICATION_TARGETS='192.168.0.101 192.168.0.102'
@allaryin
allaryin / modlist.txt
Created March 13, 2013 06:51
Modlist for My Life Without IC2
My Life Without IndustrialCraft
Modlist (as of episode 21):
-------------------------------
Jar
- Forge 6.6.0.518
- Optifine HD_U D5
Coremods
- Treecapitator r07
@allaryin
allaryin / pinwheel.lua
Last active October 14, 2015 01:48
A simple ComputerCraft pinwheel mining script.
-- Allaryin's pinwheel miner
--
-- v1 - Dec 14, '12
-- v2 - Dec 15, '12 - attempts to deal with gravel
-- v3 - Dec 16, '12 - improved gravel & refueling
-- instructions
-- fuel goes in slot 1, torches go in slot 2
-- place turtle on left of 2x2 tunnel to be dug
-- run script :)