This file contains hidden or 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
| # ColdFusion Project | |
| This is a ColdFusion (CFML) application. Use modern CFML practices, prioritize security, and optimize performance. | |
| ## Clean Code Principles (Bob Martin) | |
| These principles apply to ALL code you write, regardless of language: | |
| ### Meaningful Names | |
| - **Use intention-revealing names**: Names should answer why it exists, what it does, and how it's used |
This file contains hidden or 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
| ## Clean Code Principles (Bob Martin) | |
| These principles apply to ALL code you write, regardless of language: | |
| ### Meaningful Names | |
| - **Use intention-revealing names**: Names should answer why it exists, what it does, and how it's used | |
| - **Avoid disinformation**: Don't use names that obscure meaning (e.g., `accountList` when it's not actually a list) | |
| - **Make meaningful distinctions**: Don't use number-series naming (`a1`, `a2`) or noise words (`ProductInfo` vs `ProductData`) | |
| - **Use pronounceable names**: If you can't pronounce it, you can't discuss it intelligently | |
| - **Use searchable names**: Single-letter names and numeric constants are hard to locate across a codebase |
This file contains hidden or 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
| <!--- Set the IP address. ---> | |
| <cfset ipAddress = "10.150.160.228" /> | |
| <!--- Break the IP address into numeric units. ---> | |
| <cfset ipParts = listToArray( ipAddress, "." ) /> | |
| <!--- Create a running total for our numeric IP equivalent. ---> | |
| <cfset ipNumber = 0 /> | |
| <!--- |
This file contains hidden or 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
| <cfscript> | |
| param name="url.document" default=""; | |
| param name="statusText" default=""; | |
| // Get document path. Replace backslashes in url.document with forward slashes for OS consistency | |
| documentPath = settings.batchDirectory & "/" & url.document.replace("\", "/", "all"); | |
| // Respond with 404 if the document does not exist on disk | |
| if (! url.document.len() || ! fileExists(documentPath)) { | |
| response.statusCode = 404; |
This file contains hidden or 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
| <!-- | |
| ~ Licensed to the Apache Software Foundation (ASF) under one | |
| ~ or more contributor license agreements. See the NOTICE file | |
| ~ distributed with this work for additional information | |
| ~ regarding copyright ownership. The ASF licenses this file | |
| ~ to you under the Apache License, Version 2.0 (the | |
| ~ "License"); you may not use this file except in compliance | |
| ~ with the License. You may obtain a copy of the License at | |
| ~ | |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or 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
| 4077 1431 1511 4710 | |
| 0225 | |
| 350 | |
| zip 31008 |
This file contains hidden or 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
| $name = $args[0] #-- Name and folder name of project | |
| $site =$args[1] #-- site name like www.foo.com | |
| $config = $args[2] #-- cfconfig json file to setup datasources etc.. | |
| if (!(Get-Module -ListAvailable -Name IISManager)) { | |
| Install-Module -Name IISManager -Confirm:$False -Force | |
| } | |
| if (!(Get-Module -ListAvailable -Name Hosts)) { | |
| Install-Module -Name Hosts -Confirm:$False -Force | |
| } |
This file contains hidden or 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
| $Project = $args[0] | |
| $repo = "IDMI/$Project.git" | |
| $fullPath = "C:\Domains\$Project" | |
| $getLocation = Get-Location | |
| if (-not (Test-Path -Path $fullPath) ) { | |
| Write-Output "Clone $repo to $fullPath" | |
| git clone [email protected]:$repo $fullPath | |
| cd $fullpath | |
| git fetch integration |
This file contains hidden or 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
| # 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 | |
| # |
This file contains hidden or 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
| #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 |
NewerOlder