Skip to content

Instantly share code, notes, and snippets.

View gpickin's full-sized avatar

Gavin Pickin gpickin

View GitHub Profile
@gpickin
gpickin / soapbox.sql
Created October 2, 2019 17:42
MySQL Db for SoapBox Demo for CF Summit 2019 Presentation
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.12 - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.5.0.5196
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
@gpickin
gpickin / docker-compose.yml
Created September 26, 2018 15:24
Docker-Compose.yml for CF Summit 2018 ColdBox Zero to Hero Workshop - MySQL
version: '3'
services:
mysql57:
image: mysql:5.7
restart: unless-stopped
container_name: mysql57-container
ports:
- "127.0.0.1:3306:3306"
environment:
MYSQL_ROOT_PASSWORD: soapbox
/* eslint-disable func-names */
/* eslint quote-props: ["error", "consistent"]*/
/**
* This sample demonstrates a simple skill built with the Amazon Alexa Skills
* nodejs skill development kit.
* This sample supports multiple lauguages. (en-US, en-GB, de-DE).
* The Intent Schema, Custom Slots and Sample Utterances for this skill, as well
* as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact
**/
@gpickin
gpickin / Sv4Util.cfc
Created September 13, 2017 22:51 — forked from Leigh-/Sv4Util.cfc
Amazon Web Services Signature 4 Utility for ColdFusion (Alpha)
/**
* Amazon Web Services Signature 4 Utility for ColdFusion
* Version Date: 2016-04-12 (Alpha)
*
* Copyright 2016 Leigh (cfsearching)
*
* Requirements: Adobe ColdFusion 10+
* AWS Signature 4 specifications: http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
*
* Licensed under the Apache License, Version 2.0 (the "License");
@gpickin
gpickin / AuthorORMExtender.cfc
Created August 13, 2017 02:52
A ColdBox interceptor that listens for the appropriate Author ORM Interception points announced by CBORM from Hibernate, New function to be injected into every new or loaded Author Object. This new function checks for excluded permissions, before continuing to check permissions via the original ContentBox permission structure.
/**
* Listens for the appropriate Author ORM Interception points announced by CBORM from Hibernate.
* https://github.com/coldbox-modules/cbox-cborm/wiki/ORM-To-ColdBox-Interceptions
*/
component {
/**
* Configure Function
*/
[{"content":"<p>This is a test.</p>\r\n","children":[],"excerpt":"","isDeleted":false,"relatedcontent":[],"HTMLDescription":"","slug":"disk-queues-77CAF","createdDate":"31 Jan 2014 02:41 PM","contentID":142,"publishedDate":"31 Jan 2014 02:41 PM","categories":[],"contentType":"Entry","HTMLTitle":"","expireDate":"N/A","modifiedDate":"May 3, 2016 4:23:25 PM PDT","customfields":[],"comments":[{"content":"testst","createdDate":"17 Jun 2014 11:29 PM","authorURL":"http://www.ortussolutions.com","author":"Luis Majano"},{"content":"Thsi is my gmail test","createdDate":"18 Jun 2014 05:22 PM","authorURL":"http://www.ortussolutions.com","author":"Luis Majano"},{"content":"Test","createdDate":"04 Aug 2015 04:17 PM","authorURL":"","author":"Luis"},{"content":"My awesome comment","createdDate":"28 Nov 2016 03:35 PM","authorURL":"","author":"Luis Majano"},{"content":"non logged in user test","createdDate":"28 Nov 2016 03:39 PM","authorURL":"","author":"Pio"}],"title":"Disk Queues ","featuredImageURL":"","allowComments":true,
{"content":"<p>This is a test.</p>\r\n","children":[],"excerpt":"","isDeleted":false,"relatedcontent":[],"HTMLDescription":"","slug":"disk-queues-77CAF","createdDate":"31 Jan 2014 02:41 PM","contentID":142,"publishedDate":"31 Jan 2014 02:41 PM","categories":[],"contentType":"Entry","HTMLTitle":"","expireDate":"N/A","modifiedDate":"May 3, 2016 4:23:25 PM PDT","customfields":[],"comments":[{"content":"testst","createdDate":"17 Jun 2014 11:29 PM","authorURL":"http://www.ortussolutions.com","author":"Luis Majano"},{"content":"Thsi is my gmail test","createdDate":"18 Jun 2014 05:22 PM","authorURL":"http://www.ortussolutions.com","author":"Luis Majano"},{"content":"Test","createdDate":"04 Aug 2015 04:17 PM","authorURL":"","author":"Luis"},{"content":"My awesome comment","createdDate":"28 Nov 2016 03:35 PM","authorURL":"","author":"Luis Majano"},{"content":"non logged in user test","createdDate":"28 Nov 2016 03:39 PM","authorURL":"","author":"Pio"}],"title":"Disk Queues ","featuredImageURL":"","allowComments":true,"
<?xml version="1.0" encoding="utf-8"?><page><content>&lt;p&gt;Support services&lt;/p&gt;
&lt;p&gt;&lt;p&gt;Sorry, no related content was found.&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut odio. Nam sed est. Nam a risus et est iaculis adipiscing. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer ut justo. In tincidunt viverra nisl. Donec dictum malesuada magna. Curabitur id nibh auctor tellus adipiscing pharetra. Fusce vel justo non orci semper feugiat. Cras eu leo at purus ultrices tristique.&lt;/p&gt;
&lt;p&gt;Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutp
@gpickin
gpickin / ModuleConfig.cfc
Created July 23, 2016 06:13
mysecrets ModuleConfig.cfc part 4 - adding top level menu items and sub menu items
/**
* ContentBox - A Modular Content Platform
* Copyright since 2012 by Ortus Solutions, Corp
* www.ortussolutions.com/products/contentbox
* ---
*/
component hint="My Secrets Module Configuration"{
// Module Properties
this.title = "MySecrets";
@gpickin
gpickin / ModuleConfig.cfc
Created July 23, 2016 05:27
mysecrets ModuleConfig - Part 3 - adding and removing submenu items from the Modules Admin Menu
/**
* ContentBox - A Modular Content Platform
* Copyright since 2012 by Ortus Solutions, Corp
* www.ortussolutions.com/products/contentbox
* ---
*/
component hint="My Secrets Module Configuration"{
// Module Properties
this.title = "MySecrets";