Skip to content

Instantly share code, notes, and snippets.

@jamiejackson
jamiejackson / Vagrantfile
Created February 24, 2015 20:54
Attempt at Installing RVM in Vagrant
$script = <<SCRIPT
su -c "source #{vm_script_dir}/utils/rvm_install2.sh \
--provisioned-dir=#{vm_provisioned_dir}
" vagrant
SCRIPT
# Install RVM
config.vm.provision "shell", inline: $script
12:24:06.164 EVENT Checking Resource aliases
12:24:06.196 EVENT Starting Jetty/4.2.19
===================================================================
SERVER CONTEXT
-------------------------------------------------------------------
- config:E:\Users\15037\git\lucee\lucee-java\lucee-debug\.\server\context
- loader-version:4.3
===================================================================
Sat Feb 28 12:24:06 EST 2015-570 using JRE Date Library
@jamiejackson
jamiejackson / DynamicFunctionsTest.cfc
Last active August 29, 2015 14:20
Attempting to Create a Test Decorator for Running Dynamically-Generated Functions
/**
* @mxunit:decorators DynamicFunctionsTestDecorator
**/
component extends="mxunit.framework.TestCase" {
init();
private function init() {
dynamicFunctions = {};
@jamiejackson
jamiejackson / a_test.cfm
Created May 15, 2015 15:53
Lucee 4.5.1.000 Problem with S3 Directory Listing: "exists, but isn't a directory"
<cfscript>
base = "s3://MYKEY:MYSKEY@/files-stage.mysite.com";
writeDump(
var = directoryList( base ),
label = "directoryList(#base#)",
output = "console"
);
dir = base & "/reports";
<!--
~ Copyright (c) 2014-2015 Enrico M. Crisostomo
~ All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ * Redistributions of source code must retain the above copyright notice, this
~ list of conditions and the following disclaimer.
~
@jamiejackson
jamiejackson / upgrade_mod_cfml.sh
Last active September 25, 2015 14:33
Upgrade from Perl-Based ModCFML in Lucee on Ubuntu
#!/usr/bin/env bash
# install module compiling prerequisite
sudo apt-get install apache2-threaded-dev
# get/compile/place new module
cd /tmp
wget -O mod_cfml-master.zip https://github.com/utdream/mod_cfml/archive/master.zip
unzip mod_cfml-master.zip
cd ./mod_cfml-master/C
@jamiejackson
jamiejackson / gist:1590705
Created January 10, 2012 19:36
Install jruby-jack gem from source?
gem uninstall jruby-rack; # get rid of old jruby-rack gem
git clone https://github.com/jruby/jruby-rack.git; # clones into jruby-rack directory
cd jruby-rack; # cd into the new directory
bundle install; # shouldn't this put the gem into the gemset?
rake install_gem; # what's this for?
# delete the git source from my rails project
cd ../;
rm -rf jruby-jack;
@jamiejackson
jamiejackson / gist:1591096
Created January 10, 2012 20:49
trying to build jruby-rack
$ # in my project's rails root
$ git clone https://github.com/jruby/jruby-rack.git
$ cd jruby-rack
$ rake gem
mkdir -p target/classes
mvn org.jruby.plugins:jruby-rake-plugin:classpath -Djruby.classpath.scope=test
rake aborted!
Command failed with status (127): [mvn org.jruby.plugins:jruby-rake-plugin:cl...]
jamie@icf109118-Ubuntu:~/workspace_ruby/probs/jruby-rack$ rake gem
mvn org.jruby.plugins:jruby-rake-plugin:classpath -Djruby.classpath.scope=test
rake aborted!
Command failed with status (127): [mvn org.jruby.plugins:jruby-rake-plugin:cl...]
Tasks: TOP => spec => compile => target/classpath.rb
(See full trace by running task with --trace)
jamie@icf109118-Ubuntu:~/workspace_ruby/probs/jruby-rack$ rake gem --trace
** Invoke gem (first_time)
** Invoke target/jruby-rack-1.1.3.dev-SNAPSHOT.jar (first_time)
@jamiejackson
jamiejackson / gist:1591301
Created January 10, 2012 21:27
Install jruby-jack gem from source
$ sudo apt-get install maven2 # install maven2, if you don't have it
$ gem uninstall jruby-jack
$ gedit Gemfile # add: gem 'jruby-rack', '1.1.3.dev'
$ # while in my project's rails root
$ git clone https://github.com/jruby/jruby-rack.git
$ cd jruby-rack
$ bundle install
$ rake gem
$ gem install target/jruby-rack-1.1.3.dev.gem
$ cd ../