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 is the main config file for nginx, to specify it from the command line, use the -c switch, e.g | |
#### nginx.exe -c nginx-railo.conf | |
##** if connecting to Tomcat, use Tomcat's RemoteIpValve to resolve CGI.REMOTE_ADDR, CGI.SERVER_NAME, and CGI.SERVER_PORT_SECURE | |
##** <Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="X-Forwarded-Proto" remoteIpHeader="X-Forwarded-For" protocolHeaderHttpsValue="https" /> | |
#user nobody; | |
#pid logs/nginx.pid; |
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> | |
// setup begin | |
datasource = { | |
class:"com.mysql.jdbc.Driver" | |
,connectionString:"jdbc:mysql://localhost/test" | |
,username:"root" | |
,password:"" | |
}; |
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 { | |
/** cfc custom tag init( boolean hasEndTag, component parent ) */ | |
function init( boolean hasEndTag, component parent ) { | |
this.name = listFirst(listLast(getCurrentTemplatePath(), '\/'), '.'); | |
this.parent = arguments.parent ?: "{no-parent}"; | |
return this; |
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
REM ***** BASIC ***** | |
function getScriptVersion() | |
getScriptVersion = 1.04 | |
end function | |
function contains(str1 as Variant, str2 as Variant) | |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package s21.net.scribe; | |
import java.util.Map; | |
import java.util.concurrent.TimeUnit; | |
import org.scribe.model.OAuthRequest; | |
import org.scribe.model.Response; |
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 output="false" | |
hint="this component scans a folder of CFML and compares it with the /WEB-INF/railo/cfclasses to detect files that are in the source folder but were not compiled to a Java class, essentially showing old / obsolete / seldomly used cf source files"> | |
<!--- requires: Railo 3.x | |
/** Attention: this component Does Not delete any files; it merely points out | |
* which files were not compiled so that you can inspect them and | |
* decide if they can be safely removed. | |
* | |
* Warning: be sure to back up all of your source files before you make any |
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
package net.twentyonesolutions.railo.functions; | |
import javax.servlet.http.HttpServletRequest; | |
import railo.loader.engine.CFMLEngineFactory; | |
import railo.runtime.PageContext; | |
import railo.runtime.exp.PageException; | |
import railo.runtime.ext.function.Function; | |
/** creates a Railo function for GetRequestUrl() (requires function definition file of type .fld) */ |
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
<cffunction name="printClassLoaderUrls" output="true"> | |
<cfargument name="classLoader"> | |
<cfset var Local = {}> | |
<cfset PAD = " "> | |
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
<style> | |
tr td { border-bottom: 1px dotted gray; vertical-align: top; margin-top: 2px; padding-left: 0.5em; } | |
tr td:first-child { text-align: right; padding-right: 0.5em; border-right: 1px dotted #CCC; } | |
table { border: 1px solid gray; width:90%; } | |
</style> | |
<cfoutput> | |
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
<!--- first select from db !---> | |
<cfquery name="qTestinmonials"> | |
SELECT testimonial, author | |
FROM recommendations | |
ORDER BY rand() LIMIT 1 | |
</cfquery> | |
<!--- now output the data !---> | |
<cfoutput query="qTestinmonials"> |
OlderNewer