View gist:badca439b428d2f4ff3b0bda5c8701f6
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
test | |
<cfscript> | |
cfsetting( requestTimeout="999999"); | |
results = [:]; | |
cfloop( from="1", to="2", index="x", step=2 ){ | |
rows = (x)^3; | |
variables.qry = queryNew("id,name", "integer,varchar" ); | |
cfloop( from=1, to=rows, index="i", step=4 ){ | |
qry.addRow([[i,"brad wood#i#"], [i+2,"Rachel wood#i#"], [i+3,"Luis Majano#i#"], [i+4,"Gavin Pickin#i#"]]); | |
} |
View gist:8c6991423fb8e5521edeea6ffdf5a15e
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
LDEV-3473 - Lower log level to info to keep from blowing up production logs | |
LDEV-3735 - QoQ allows divide by zero | |
LDEV-3830 - remove optimization to ensure distincts | |
LDEV-3822 - stricter QoQ order by validation | |
LDEV-3823 - SELECT DISTINCT with ORDER BY in QoQ incompatibility - ACF | |
LDEV-3801 - ArrayIndexOutOfBoundsException in QoQ with using ORDER BY | |
LDEV-3522 - QoQ cast()/convert() functions not fully implemented | |
LDEV-3736 - QoQ doesn't convert empty strings to 0 in arithmetic operations | |
LDEV-3734 - QoQ treats nulls differently than real DB's in arithmetic expressions | |
LDEV-3804 - Throw exception, don't return it |
View task.cfc
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
/** | |
* Scan all jars in folder recursivley for log4j vuln | |
*/ | |
component { | |
property name="progressableDownloader" inject="ProgressableDownloader"; | |
property name="progressBar" inject="ProgressBar"; | |
/** | |
* @scanPath absolute or relative path to folder to look for jars | |
*/ |
View gist:90e982de376177854cb606b0d97ea5d9
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> | |
foo = 'bar'; | |
``` | |
<cfset baz = foo> | |
<cfscript> | |
bum = baz; | |
``` | |
<cfdump var="#bum#"> |
View task.cfc
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( webURL='https://www.ortussolutions.com' ) { | |
if( !directoryExists( resolvePath( 'lib' ) ) ) { | |
command( 'install "jar:https://search.maven.org/remotecontent?filepath=com/microsoft/playwright/playwright/1.15.2/playwright-1.15.2.jar"' ).run(); | |
command( 'install "jar:https://search.maven.org/remotecontent?filepath=com/microsoft/playwright/driver-bundle/1.15.2/driver-bundle-1.15.2.jar"' ).run(); | |
command( 'install "jar:https://search.maven.org/remotecontent?filepath=com/microsoft/playwright/driver/1.15.2/driver-1.15.2.jar"' ).run(); | |
command( 'install "jar:https://search.maven.org/remotecontent?filepath=org/netbeans/external/com-google-gson/RELEASE113/com-google-gson-RELEASE113.jar"' ).run(); | |
} |
View STIG-CFConfig.json
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
{ | |
"adminAllowConcurrentLogin":false, | |
"adminAllowedIPList":"127.0.0.1,192.168.50.10", | |
"adminLoginRequired":true, | |
"adminRDSEnabled":"false", | |
"adminRDSLoginRequired":"true", | |
"adminRDSUserIDRequired":false, | |
"adminRootUserID":"cfadm", | |
"adminUserIDRequired":true, | |
"ajaxDebugWindowEnabled":false, |
View gist:25db10d3f8a1b4df1826b8eca96e1d8f
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 |
View task.cfc
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' ) ); |
View byteCodeSize.cfm
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. | |
*/ |
View gist:747e993d40ab1af5e7d843fce2fe23f6
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 ) ); |
NewerOlder