This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.cache[ 'couchbase' ] = { | |
class = 'ortus.extension.cache.couchbase.CouchbaseCache', | |
storage=true, | |
custom={ | |
bucketName='default' | |
} | |
}; | |
this.cache[ 'couchbasecache' ] = this.cache[ 'couchbase' ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component extends="testbox.system.BaseSpec" { | |
function beforeAll(){ | |
SUT = createObject( 'BeerSong' ); | |
} | |
function run(){ | |
describe( "My BeerSong class", function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
property name='printer' inject='print'; | |
function run() { | |
var lines = [ | |
// bold text. Bold works on regular output, but not on prompt | |
'#chr(27)#[1mtest#chr(27)#[0m', | |
// bold GREEN text. Bold works on prompt but not on regular ouptut! | |
'#chr(27)#[1m#chr(27)#[32mtest#chr(27)#[0m', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
May 07, 2018 10:58:52 AM org.jline.utils.Log logr | |
FINE: Error creating JNA based terminal: C:\Users\user.name\AppData\Local\Temp\1\jna--337510509\jna1825582816334583471.dll: Access is denied | |
java.lang.UnsatisfiedLinkError: C:\Users\user.name\AppData\Local\Temp\1\jna--337510509\jna1825582816334583471.dll: Access is denied | |
at java.lang.ClassLoader$NativeLibrary.load(Native Method) | |
at java.lang.ClassLoader.loadLibrary0(Unknown Source) | |
at java.lang.ClassLoader.loadLibrary(Unknown Source) | |
at java.lang.Runtime.load0(Unknown Source) | |
at java.lang.System.load(Unknown Source) | |
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:906) | |
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:881) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
function run() { | |
var terminal = shell.getReader().getTerminal(); | |
var capability = createObject( 'java', 'org.jline.utils.InfoCmp$Capability' ); | |
var keys = createObject( 'java', 'org.jline.keymap.KeyMap' ); | |
var bindingReader = createObject( 'java', 'org.jline.keymap.BindingReader' ).init( terminal.reader() ); | |
keys.bind( capability.key_left.name(), keys.key( terminal, capability.key_left ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Delete Slack files older than 30 days | |
*/ | |
component { | |
function run( token='', user='' ) { | |
if( !token.len() ) { | |
error( 'Need an API token provided. Edit this task or pass it as ":token=foobar".' ); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
/* | |
This script will take a relative path to a CFC or CFM file in your application, analyze it's corresponding bytecode and | |
measure approximately how many Bytes of bytecode were generated for each line of your CFML code. There's not any one-to-one | |
correlation between CFML code and bytecode. Some lines of your source code generate no bytecode such as comments or whitespace. | |
Other lines of CFML code may generate hundreds of bytes of code. | |
This is more for the fun of it. It has been tested on Lucee 5.2.9.31. It will not work on Adobe and may cease to work on | |
future versions of Lucee if the BCEL library is no longer bundled by default. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Scrape all the binaries from RiaForge | |
*/ | |
component { | |
property name="progressableDownloader" inject="ProgressableDownloader"; | |
property name="progressBar" inject="ProgressBar"; | |
function run() { | |
directoryCreate( resolvePath( 'downloads' ), true, true ); | |
var projects = deserializeJSON( fileRead( 'http://riaforge.org/index.cfm?event=json.projects' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
176.58.112.34 lucee.org | |
205.210.189.210 download.lucee.org extension.lucee.org release.lucee.org update.lucee.org | |
99.84.216.74 cdn.lucee.org |