Skip to content

Instantly share code, notes, and snippets.

View 65's full-sized avatar

Duncan Isaksen-Loxton 65

View GitHub Profile
@65
65 / antsvnupdate.xml
Created March 5, 2012 09:48
svn update via ANT
<!-- Properties to be set by SVN $ID$ $REV$ -->
<project name="SVN Update" default="update" basedir=".">
<description> Updates to head revision </description>
<!-- all properties are in build.properties -->
<property file="build.properties" />
<!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib -->
<path id="svnant.classpath">
<fileset dir="${ant.home}">
<include name="**/*.jar"/>
</fileset>
@65
65 / cfhttp.cfm
Created March 5, 2012 10:02
helping coldfusion cfhttp work with http compression
<cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0">
<cfhttpparam type="Header" name="TE" value="deflate;q=0">
@65
65 / cfform.cfm
Created March 8, 2012 07:53
ColdFusion 8 - Ajax Debugger
<cfform>
<cftree name="dirtree" format="html">
<cftreeitem bind="cfc:dirtree.getDirEntries({cftreeitempath}, {cftreeitemvalue})">
</cftree>
</cfform>
@65
65 / ContactPos.html
Created March 8, 2012 21:34
ajaxCFC Multiple Suggest on one page
<input id="fldPositionLookup" name="fldPositionLookup" value="#qContact.Position#" style="width:300px" maxlength="120" class="textfield" autocomplete="off" onFocus="onSuggestFieldFocus(positionLookup)">
@65
65 / cfthread.cfm
Created March 9, 2012 17:45
cfthread - pause or sleep a thread in ColdFusion 8
<cfthread action="sleep" duration="2000" />
@65
65 / redirect.php
Created March 9, 2012 17:51
301 Permanent redirects in PHP
<?
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.sixfive.co.uk/products/?ASIN=".$_GET['asin']);
?>
@65
65 / header.cfm
Created March 9, 2012 17:59
301 Permanent redirects in ColdFusion
<CFHEADER statuscode="301" statustext="Moved Permanently">
<CFHEADER name="Location" value="http://www.sixfive.co.uk/">
@65
65 / redir301.php
Created March 9, 2012 18:08
301 Permanent redirects with Apache
Redirect 301 /two http://www.sixfive.co.uk/other
@65
65 / echomessage.php
Created March 10, 2012 07:22
Using the Ant FTP Task in Eclipse
<echo message="creating directory ${FTP.Development.Address}${FTP.Development.RemoteLocation} " />
<ftp server="ftp.sixfive.co.uk" userid="Anonymous" password="myemail@email.com" remotedir="/incoming/anonymous/">
<fileset dir="c:/temp/" />
</ftp>
@65
65 / build.properties
Created March 10, 2012 07:34
Using ANT from Eclipse
<property file="build.properties" />