Skip to content

Instantly share code, notes, and snippets.

There's a box for that

Brad Wood bdw429s

There's a box for that
View GitHub Profile
View task.cfc
component {
property name='printer' inject='print';
function run() {
var lines = [
// bold text. Bold works on regular output, but not on prompt
// bold GREEN text. Bold works on prompt but not on regular ouptut!
View BeerSongTest.cfc
component extends="testbox.system.BaseSpec" {
function beforeAll(){
SUT = createObject( 'BeerSong' );
function run(){
describe( "My BeerSong class", function(){
bdw429s / gist:ddb27521868c77dc97ec742a670000bc
Created Apr 13, 2017
Portainer running on a Swarm and monitoring that swarm
View gist:ddb27521868c77dc97ec742a670000bc
docker service create \
--name portainer \
--publish 9000:9000 \
--constraint 'node.role == manager' \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
portainer/portainer \
-H unix:///var/run/docker.sock
bdw429s / Application.cfc
Created Oct 27, 2016
Lucee Server defining data sources and caches from Applicatipn.cfc
View Application.cfc
this.cache[ 'couchbase' ] = {
class = 'ortus.extension.cache.couchbase.CouchbaseCache',
this.cache[ 'couchbasecache' ] = this.cache[ 'couchbase' ];
View gist:d5acb02498dd6169d5150289b3388144
echo( ['a', 'at', 'cat', 'scat', 'catch'].filter( function( i ) { return reFind( '.+at', i ) } ).first() )
View Lucee settings exported
component { = "<application-name>"; // name of the application context
// regional
// default locale used for formating dates, numbers ...
this.locale = "en_US";
// default timezone used
this.timezone = "America/Chicago";
bdw429s / gist:3003ba56073d759b39aa
Created Jun 11, 2015
Stored Procedure Shim for Railo
View gist:3003ba56073d759b39aa
<cfcomponent displayName="Stored Procedure Shim for Railo" accessors="true">
<cfproperty name="datasource" type="string" required="true" default="">
<cfproperty name="procedure" type="string" required="true" default="">
<cfproperty name="username" type="string" required="false" default="">
<cfproperty name="password" type="string" required="false" default="">
<cfproperty name="params" type="array" required="false">
<cfproperty name="procResults" type="array" required="false">
<cfproperty name="procResultSets" type="struct" required="false">
bdw429s / gist:da93e5e0ceae7f1826b7
Created Jan 13, 2015
cannot find symbol [javac] symbol : class LocalFilesystemURL
View gist:da93e5e0ceae7f1826b7
[javac] Compiling 20 source files to /project/bin/classes
[javac] /project/src/org/apache/cordova/mediacapture/ cannot find symbol
[javac] symbol : class LocalFilesystemURL
[javac] location: package org.apache.cordova.file
[javac] import org.apache.cordova.file.LocalFilesystemURL;
[javac] ^
[javac] /project/src/org/apache/cordova/mediacapture/ cannot find symbol
[javac] symbol : class LocalFilesystemURL
[javac] location: class org.apache.cordova.mediacapture.Capture
bdw429s / gist:b6550c49b9105195d51f
Created May 10, 2014
Notes on installing Java to Ubuntu
View gist:b6550c49b9105195d51f
Install Java JDK Oracle 7u11
Download JDK7
tar -xvf JDK
sudo mkdir -p /usr/lib/jvm/jdk1.7.0_21
sudo mv jdk1.7.0_21/* /usr/lib/jvm/jdk1.7.0_25/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_25/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_25/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_25/bin/javaws" 1
sudo update-alternatives --config java
bdw429s / gist:11273758
Created Apr 25, 2014
Stack dump from a Railo server with 63 threads blocked while trying to lock railo.runtime.db.DCStack which is held by ajp-bio-8009-exec-743
View gist:11273758
This file has been truncated, but you can view the full file.
JVM Stack Trace
"main" Id=1 RUNNABLE (in native)
java.lang.Thread.State: RUNNABLE
at Method)