This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' This script will add a host header to an existing site in IIS6 | |
' First save this script to a file | |
' Then run simply by calling the script from the command line passing in the arguments: | |
' 1) the Site Name in IIS (can be found under the description header) | |
' 2) the IPAddress of the host header you | |
' 3) the Port number for the host header (usually 80) | |
' 4) the full qualified host (domain) name | |
' EXAMPLE: wscript addHostHeader.vbs mytestsite 127.0.0.1 80 site3.example.com | |
Const IISService = "IIS://localhost/w3svc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8922990286e83f9d9307d07dbc286b7d4ecb348e Mon Sep 17 00:00:00 2001 | |
From: Tony Petruzzi <tpetruzzi@gmail.com> | |
Date: Mon, 27 Sep 2010 16:59:40 -0400 | |
Subject: [PATCH] saving work | |
--- | |
wheels/controller/layouts.cfm | 2 +- | |
wheels/controller/rendering.cfm | 1 + | |
wheels/global/appfunctions.cfm | 2 + | |
wheels/global/cfml.cfm | 18 +++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FROM=$1 #/cygdrive/c/temp/oldrepo | |
TO=$2 #/cygdrive/c/temp/newrepo | |
echo "Spliting '$TO' from '$FROM'" | |
git clone --no-hardlinks $FROM $TO | |
cd $TO | |
git filter-branch --subdirectory-filter $TO HEAD -- --all | |
git reset --hard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- disable automatic validations ---> | |
<cfset set(automaticValidations=false)> | |
<!--- delay redirections ---> | |
<cfset set(functionName="redirectTo", delay=true)> | |
<!--- disable automatic form field labels ---> | |
<cfset set(functionName="textField", label=false)> | |
<cfset set(functionName="textFieldTag", label=false)> | |
<cfset set(functionName="passwordField", label=false)> | |
<cfset set(functionName="passwordFieldTag", label=false)> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
this is for wheels.1.1 | |
---> | |
<cffunction name="init"> | |
<cfset afterFind("passwordToBlank")> | |
<cfset beforeSave("passwordProtection")> | |
<!--- | |
only valid the password when creating a record or if the password isn't | |
blank. this allows you to not enter anything when updating a record |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unpacked plugin folders | |
plugins/**/* | |
# files directory where uploads go | |
files | |
# DBMigrate plugin: generated SQL | |
db/sql | |
# AssetBundler plugin: generated bundles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent> | |
<cfset $class = {}> | |
<cffunction name="init"> | |
<cfargument name="relativePath" type="string" default="" hint="the relative component path from the webroot"> | |
<cfset $class.container = []> | |
<cfset $class.relativePath = arguments.relativePath> | |
</cffunction> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wheels/model/initialization.cfm b/wheels/model/initialization.cfm | |
index 3755c2c..24a6c94 100644 | |
--- a/wheels/model/initialization.cfm | |
+++ b/wheels/model/initialization.cfm | |
@@ -45,140 +45,144 @@ | |
// run developer's init method if it exists | |
if (StructKeyExists(variables, "init")) | |
init(); | |
- | |
- // make sure that the tablename has the respected prefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent extends="Controller"> | |
<cffunction name="index"> | |
<cfsetting showdebugoutput="false"> | |
<cfset releasesDir ="#get('rootpath')##get('filePath')#/releases"> | |
<cfdirectory action="list" directory="#expandPath(releasesDir)#" filter="*.zip" name="releases"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- add the following to the events/onapplicationstart.cfm ---> | |
<cffunction name="initServices" returntype="void" hint="I initialize the services objects for this app"> | |
<cfset var loc = {}> | |
<cfset application.$_ServiceObjects = {}> | |
<cfdirectory action="list" directory="#expandPath('services')#" name="loc.services"/> | |
<cfloop query="loc.services"> | |
<cfset application.$_ServiceObjects[ListFirst(name, '.')] = createObject("component", "services.#ListFirst(name, '.')#").init()> | |
</cfloop> | |
</cffunction> | |
<cfset initServices()> |