Skip to content

Instantly share code, notes, and snippets.

@raelik
raelik / jruby_tools_wrapper.sh
Created April 10, 2018 20:34
jRuby custom launchers
#!/usr/bin/env bash
ARTIFACT="artifact"
COMMAND=$(basename $0)
COMMAND=${COMMAND/j-/} # Remove the leading 'j-' from the command name
BASE_PATH=${BASH_SOURCE%/*}
DEBUG=
if [ "$COVERAGE" == "true" ]; then
@raelik
raelik / irc_bot.lua
Last active January 15, 2018 16:29
IRC Bridge for Eluna
package.path = package.path .. ';lua_lib/?.lua;lua_lib/?/init.lua'
local irc = require("irc")
local mirc_colors = {
'FFFFFF', -- White
'000000', -- Black
'00007F', -- Blue
'009300', -- Green
'FF0000', -- Light Red
'7F0000', -- Brown
'9C009C', -- Purple
@raelik
raelik / steps.txt
Created August 25, 2015 19:14
Using jruby-gradle to create a jruby+dependencies jar, and still have your application code live directly on the filesystem
Assuming that you're using jruby-gradle 1.0.3, you'll need to take these steps:
1. In your build.gradle, in addition to your gems dependencies, you'll need:
jrubyJar {
initScript runnable()
}
configurations {
jrubyJar {