Skip to content

Instantly share code, notes, and snippets.

View coreybutler's full-sized avatar
⏱️
Working on Author (Runtime, Journal)

Corey Butler coreybutler

⏱️
Working on Author (Runtime, Journal)
View GitHub Profile
@coreybutler
coreybutler / npm
Created July 16, 2015 21:27
Files for issue #62 (NVM for Windows)
#!/bin/sh
(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
basedir=`dirname "$0"`
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node.exe" ]; then
@coreybutler
coreybutler / cfconnect.js
Created February 8, 2014 21:22
CFExtConnect: This library offers an alternative for connecting to a ColdFusion-based backend from Ext JS. This library was built for Ext JS 3.3, though it shoud still work with Ext 4. It is assumes index.cfm will be in a directory called `data` and demo.cfc will be in a directory called `com`.
//Custom object
Ext.namespace('cfc');
cfc = function(config) {
//If no configuration is defined, create an empty one.
var config = this;
var pass = false;
//Main Configuration
Ext.applyIf(this, {
@coreybutler
coreybutler / cache.json
Created August 20, 2012 14:38
Example cache.json used for NGNX.web.Proxy
{
"remote": null,
"cache": [
{
"hostname": "localhost",
"port": 83,
"alias": [
"127.0.0.1"
],
"target": [
@coreybutler
coreybutler / demo.json
Created February 18, 2012 22:25
AreWeThereYet
[{ geometry: [Object],
icon: 'http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png',
id: 'e4edcad2313b27f384c3300d98afccc58d39a878',
name: 'Round Rock Public Library',
rating: 4.7,
reference: 'CnRwAAAAb8yuKOxtNiEuxoML4HnsjpDCuHrp5P8fjXF_rm6Fwmk6Vx28n26b5LsMkApgp-x0ebUdWTpdtOQYWHssNoBcMRZ1YtD3cjlJaEJEdM9T_geHuVhCCQbLRg053oe54Nn4FbQZYRPSf6HsxvC99wQQdhIQp45bSjy9hY62ubKB20gurRoUyZp1tHhmv1KcNKgH4BcdMP5xIrg',
types: [Object],
vicinity: 'United States' },
{ geometry: [Object],
icon: 'http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png',
@coreybutler
coreybutler / cert.xml
Created January 30, 2012 18:01
Create Cert for AIR
<target name="desktop-create-ssl">
<input message="Certificate Name" addproperty="ssl.cert" defaultvalue="SelfSigned" />
<input message="Organization" addproperty="ssl.o" defaultvalue="My Organization" />
<input message="Department" addproperty="ssl.ou" defaultvalue="Development" />
<input message="Department" addproperty="ssl.c" defaultvalue="US" />
<input message="Password" addproperty="ssl.pwd" />
<echo>Attempting: ${computer.adl.root}/adt -certificate -cn ${project.desktop.src}/../cert.pfx -ou ${ssl.ou} -o ${ssl.o} -c ${ssl.c} 2048-RSA cert.pfx ${ssl.pwd}</echo>
<exec executable="${computer.adl.root}/adt">
<arg value="-certificate"/>
<arg value="-cn ${project.desktop.src}/../cert.pfx"/>
@coreybutler
coreybutler / sql_Server_wsdl.sql
Created November 12, 2011 23:35
An example for creating a web service endpoint via SQL Server
CREATE ENDPOINT echo_endpoint
STATE = STARTED
AS HTTP (
AUTHENTICATION = ( BASIC ),
PATH = '/echo' ,
PORTS = ( CLEAR )
)
FOR SOAP (
WEBMETHOD
'http://data.perkpals.com/'.'echo'
@coreybutler
coreybutler / debug.cfm
Created November 9, 2011 21:48
Basic debugging approach.
<cfscript>
email = createObject('component','pp.factory');
</cfscript>
<cfdump var="#email#" label="Factory"/>
@coreybutler
coreybutler / webserver.js
Created October 19, 2011 22:05
FB Web Server Example
var cfg = require('./Configuration'),
util = require('./util'),
routes = require('./routes'),
modules = require('./modules'),
Facebook = new modules.Facebook({
appid: cfg.facebook.appId,
secret: cfg.facebook.appSecret,
host: cfg.facebook.hostname
}),
express = require('express'),
@coreybutler
coreybutler / Facebook.js
Created October 19, 2011 22:01
Facebook Module
var EventEmitter= require('events').EventEmitter,
auth = require('everyauth'),
FB = {};
module.exports = exports = Facebook;
//Primary Object
function Facebook( config ) {
@coreybutler
coreybutler / index.cfm
Created October 11, 2011 18:52
index.cfm
<cfset x = "Hello World"/>
<cfoutput>#x#</cfoutput>