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
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
/** | |
* 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
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
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
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
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
echo( ['a', 'at', 'cat', 'scat', 'catch'].filter( function( i ) { return reFind( '.+at', i ) } ).first() ) |
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 { | |
this.name = "<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"; |
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
<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"> |