Skip to content

Instantly share code, notes, and snippets.

Gavin Pickin gpickin

Block or report user

Report or block gpickin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gpickin
gpickin / soapbox.sql
Created Oct 2, 2019
MySQL Db for SoapBox Demo for CF Summit 2019 Presentation
View soapbox.sql
-- --------------------------------------------------------
-- 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 Sep 26, 2018
Docker-Compose.yml for CF Summit 2018 ColdBox Zero to Hero Workshop - MySQL
View docker-compose.yml
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
View AWS Lambda for Forgebox
/* 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 Sep 13, 2017 — forked from Leigh-/Sv4Util.cfc
Amazon Web Services Signature 4 Utility for ColdFusion (Alpha)
View Sv4Util.cfc
/**
* 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 Aug 13, 2017
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.
View AuthorORMExtender.cfc
/**
* 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
*/
View ContentBox Blog List.json
[{"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,
View ContentBox Blog Item.json
{"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,"
View ContentBox Homepage.xml
<?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 Jul 23, 2016
mysecrets ModuleConfig.cfc part 4 - adding top level menu items and sub menu items
View ModuleConfig.cfc
/**
* 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 Jul 23, 2016
mysecrets ModuleConfig - Part 3 - adding and removing submenu items from the Modules Admin Menu
View ModuleConfig.cfc
/**
* 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";
You can’t perform that action at this time.