Skip to content

Instantly share code, notes, and snippets.

@sweded
sweded / qbQuery
Last active December 22, 2015 22:29
Provides Quickbase query methods. Returns records, record ID's, and qbAceKey
/**
* @file /usr/local/Cellar/tomcat/7.0.37/libexec/webapps/pony/components/qbQuery.cfc
* @author Gernot Bartels 2013
* @description Provides Quickbase query methods. Returns records, record ID's, and qbAceKey
*/
component extends="qbAuth"
output="false"
accessors="true"
displayname="Quickbase query methods"
@sweded
sweded / feli_registration.cfm
Last active December 22, 2015 22:29
Processes FELI event registration
<cfscript>
/**
* @file /inbound/feli_registration.cfm
* @author Gernot Bartels 2013
* @description Processes FELI event registration
* @usage FELI / CRM:Registrations
* @created 2010-02-11
* @modified 2013-08-14
*/
@sweded
sweded / qbControl
Last active December 22, 2015 21:19
Controller to create, update, delete records
/**
* @file /components/qbControl.cfc
* @author Gernot Bartels 2013
* @description Controller to create, update, delete records
*/
component
output="false"
accessors="true"
displayname="Record control"
@sweded
sweded / qbCrud
Last active December 22, 2015 21:19
Provides Quickbase auth, create, update, delete, and rescue methods
/**
* @file /components/qbCrud.cfc
* @author Gernot Bartels 2013
* @description Provides Quickbase auth, create, update, delete, and rescue methods
**/
component extends="qbAuth"
output="false"
accessors="true"
displayname="Quickbase API methods"
@sweded
sweded / qbAPI.cfc
Created November 19, 2012 21:54 — forked from nifl/qbAPI.cfc
Quickbase REST API calls
<!---
Name: qbAPI.cfc
Author: Gernot Bartels
Description: Methods to interact with QuickBase
History: Migrated from CF8 to Railo 2010-04-02.
Created: 2009-03-25
Updated: 2010-04-02
--->
<cfcomponent output="false">
<!--- Login --->
@sweded
sweded / record.cfm
Created November 19, 2012 21:49 — forked from nifl/record.cfm
Queries QB record object.
<!---
Name: record.cfm
Author: Gernot Bartels
Description: Queries QB for record object.
If record ID exists, update;
Otherwise create new record.
Prevents duplicates.
History: Created
Added logic
Usage: Surveys, Intake,
@sweded
sweded / intake_xml.cfm
Created November 19, 2012 21:36 — forked from nifl/gist:4112911
Intake Application data object
<!---
Name: intake_xml.cfm
Author: Gernot Bartels
Description: Intake Application cfsavecontent object
Returns new record or update data xml.
Processes by section.
History: Created
Usage: Surveys, Intake,
Created: 2012-09-05
Updated: 2012-10-15
@sweded
sweded / osx_shortcuts.md
Created November 9, 2012 23:11
OS X shortcuts

Ctrl-A returns cursor to the beginning of current line

Ctrl-E moves cursor to the end of the line

Ctrl-K deletes the rest of the line, beginning from the cursor

@sweded
sweded / auth.md
Created November 9, 2012 19:29
The definitive guide to forms based website authentication

PART I: How To Log In

  1. As a rule, [CAPTCHAs][1] should be a last resort. They tend to be annoying, often aren't human-solvable, most of them are ineffective against bots, all of them are ineffective against cheap third-world labor (according to [OWASP][2], the current sweatshop rate is $12 per 500 tests), and some implementations are technically illegal in some countries (see link number 1 from the MUST-READ list). If you must use a CAPTCHA, use [reCAPTCHA][3], since it is OCR-hard by definition (since it uses already OCR-misclassified book scans).

  2. It is possible to prevent browsers from storing/retrieving a password with the autocomplete tag for forms/input fields. However in the real world, your customers will have many accounts on different systems; it compromises their security if they use the same password for every site. Can you expect them to remember different passwords for every site? There are some good password managers out there, however there are also bad ones - which will become a

@sweded
sweded / gist:3920278
Created October 19, 2012 19:43
Everything you can override in a refinerycms project with refinerycms-blog
When starting a project that includes refinerycms-blog:
$ rake refinery:override view=refinery/pages/*
$ rake refinery:override view=layouts/*
$ rake refinery:override view=refinery/blog/shared/*
$ rake refinery:override view=refinery/blog/posts/*
$ rake refinery:override view=refinery/*
$ rake refinery:override controller=refinery/blog/*
$ rake refinery:override controller=refinery/*