Skip to content

Instantly share code, notes, and snippets.

View timsayshey's full-sized avatar
🚀
Coding all the things

Tim Badolato timsayshey

🚀
Coding all the things
View GitHub Profile
.project
@timsayshey
timsayshey / index.cfm
Created February 14, 2021 21:06 — forked from bennadel/index.cfm
Scaling An Image During A Draw Operation Using GraphicsMagick And Lucee CFML 5.2.9.31
<cfscript>
param name="url.image" type="string" default="beach-small.jpg";
startedAt = getTickCount();
// CAUTION: For the sake of the demo, I am not validating the input image. However,
// in a production setting, I would never allow an arbitrary filepath to be provided
// by the user! Not without some sort of validation.
inputFilename = url.image;
@timsayshey
timsayshey / Application.cfc
Created November 11, 2021 15:14 — forked from roryl/Application.cfc
Lucee Database Client Storage
component {
this.datasources["lucee_sessions"] = {
class: 'org.gjt.mm.mysql.Driver'
, connectionString: 'jdbc:mysql://192.168.33.10:3306/lucee_sessions?useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=true'
, username: 'lucee_sessions'
, password: "encrypted:8c3ea865feab8133a7614f58aee150cddee0ed6f82a476f1"
// optional settings
, storage:true // default: false