$ uname -r
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> | |
try { | |
// --> Source File: /tmp/EncryptedSpreadsheet.xls | |
// --> Password: S3cr37P@ssw0rd | |
// <-- Output File: /tmp/UnencryptedSpreadsheet.xls | |
// Uses poi-4.0.1.jar from cfsimplicity/lucee-spreadsheet installed in /spreadsheetLibrary | |
// Load an encrypted Excel spreadsheet using the password | |
jFile = createObject( "java", "java.io.File").init( "/tmp/EncryptedSpreadsheet.xls" ); |
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
<cfparam name="attributes.type" default="html"> | |
<cfswitch expression="#thisTag.ExecutionMode#"> | |
<cfcase value="start"> | |
</cfcase> | |
<cfdefaultcase> | |
<!--- *************************************************** ---> | |
<!--- Basic Errors ---> | |
<!--- *************************************************** ---> |
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 output="false" displayname="SimplePGP" { | |
public SimplePGP function init(Required String config="PDS") { | |
variables.logger = application.logbox.getLogger(this); | |
switch(arguments.config) { | |
default: { | |
variables.publicKeyPath = expandPath('/path/to/key.pub'); |
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> | |
try { | |
/* | |
Create the table which will save the timestamps | |
Use datetime(3) for a column which will save the millisecond value | |
CREATE TABLE `test_table` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, |
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 extends="mura.plugin.pluginGenericEventHandler" output="false"> | |
<cffunction name="onApplicationLoad" returnType="any" access="public" output="false"> | |
<cfif structKeyExists(application,'bugLogService')> | |
<cfset structDelete(application,'bugLogService') /> | |
</cfif> | |
<cfset variables.pluginConfig.addEventHandler(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
<cfscript> | |
try { | |
SendGrid = CreateObject("java", "com.sendgrid.SendGrid", expandPath("sendgrid-java.jar")).init('<API KEY>'); | |
Email = CreateObject("java", "com.sendgrid.SendGrid$Email", expandPath("sendgrid-java.jar")); | |
Email.addTo("<TO ADDRESS>"); | |
Email.setFrom("<FROM ADDRESS>"); | |
Email.setSubject("Hello World, #getTickCount()#"); | |
Email.setHtml("<p>My <strong>first</strong> email with SendGrid Java!</p>"); |
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> | |
// Step 1: Download AWS SDK for Java https://aws.amazon.com/sdk-for-java/ | |
// Step 2: Copy [sdk archive]/lib/aws-java-sdk-1.10.47.jar to WEB-INF/lucee/lib | |
// Step 3: Create IAM User and obtain basic credentials (Access Key ID and Secret Access Key) | |
// Step 4: Create IAM Encryption Key add "Step 3 IAM User" as a Key User (remove as Key Administrator) | |
// Step 5: Obtain Key Id for "Step 4 IAM Encryption Key" | |
// Reference: http://docs.aws.amazon.com/kms/latest/developerguide/programming-top.html | |
public Any function getBasicAWSCredentials( required string AccessKeyId, required string SecretAccessKey ) { | |
return CreateObject( |
http://docs.getmura.com/v6/installation-setup/settingsinicfm-reference/
admindomain=
adminemail=
adminssl=0
assetdir=
assetpath=