Skip to content

Instantly share code, notes, and snippets.

View timcunningham's full-sized avatar

Tim Cunningham timcunningham

View GitHub Profile
@timcunningham
timcunningham / .gitconfig
Created August 17, 2012 16:51
Add this to the .gitConfig file in your repository
#Add this to your .gitConfig file in your .git folder
#To to execute type at git bash: git log-json > ChangeLog.json
#It will save the output to a file named ChangeLog.json
#You can use this file to create your own pretty version of the ChangeLog
[alias]
log-json = !git log --pretty=format:'\"%h\": {%n \"commit\": \"%H\",%n \"author\": \"%an <%ae>\",%n \"date\": \"%ai\",%n \"message\": \"%s\"%n},'
@timcunningham
timcunningham / fonts.cfm
Created September 27, 2012 14:03
List all fonts on ColdFusion Server
<cfset adminObj = createObject("Component", "cfide.adminapi.administrator")>
<cfset adminObj.login("yourpass")> <!--- change to use your CF Admin password --->
<cfset rtService = createObject("component", "cfide.adminapi.runtime")>
<cfset fonts = rtService.getFonts()>
<cfdump var="#fonts#">
@timcunningham
timcunningham / application.cfc
Created November 29, 2012 16:38
ColdFusion 10 Web sockets getting started
<cfset this.name="ampMeter">
<!-- This setups a web socket named meter1 -->
<cfset this.wschannels = [{name="meter1"}]>
/**
Copyright (C) 2012 Daniel Watt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
@timcunningham
timcunningham / dsMake.cfm
Last active September 18, 2019 18:28
Build datasources
<cfscript>
param name="suffix" default="default,Config,Insured,InsuredPortal,Log,Rate,System,VIN";
param name="prefix" default="Evergreen";
param name="cfAdminPass" default="";
param name="userName" default="sa";
param name="password" default="";
param name="dbHost" default="evergreen.qa.ptssql.com";
// This section actually does the work based on the form input values
@timcunningham
timcunningham / boxstarter.ps1
Last active January 7, 2020 15:39
Boxstarter Commands for a New Windows Box
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Modified: Tim Cunningham <timcunningham71@gmail.com>
# Last Updated: 2020-01-02
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Modified: Tim Cunningham <timcunningham71@gmail.com>
# Last Updated: 2020-01-02
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
@timcunningham
timcunningham / cfdevBoxStarter.ps1
Last active January 15, 2020 14:39
cfdevBoxStarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Modified: Tim Cunningham <timcunningham71@gmail.com>
# Last Updated: 2020-01-02
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
#Silent properties for ColdFusion 2018
INSTALLER_UI=SILENT
#Valid Values are full/trial/developer
SILENT_LICENSE_MODE=developer
#SILENT_SERIAL_NUMBER=
#Use when it is upgrade
@timcunningham
timcunningham / IISInstall.ps1
Last active January 13, 2020 16:50
IISInstall.ps1
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
# OR
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
#