Pete Freitag Pete Freitag

Pete Freitag's Homepage

One liner to download a Browser with PowerShell on Windows Server

It would be nice if Windows Server 2019 came with Microsoft Edge Browser, but it still comes with good old IE 11, and on a Windows Server, you have to jump through hoops to let IE download anything due to its default security settings....

CFML Left and Right Functions can Accept Negative Counts

Here is a handy trick I saw in some code recently. It turns out you can use a negative integer in the count argument of the left() and right() functions in CFML....

Setting Lucee Admin Password with CommandBox

One of the recent changes to Lucee is that no longer allows you to enter an admin password from the web based lucee admin if one had not been set yet....

Cleaning up Development Disk Space CommandBox

I've been using CommandBox to startup CF servers on my dev laptop and desktop for several years, maybe even since the first version was released! CommandBox does a great job of hiding its internal magic, and thus the amount of disk space it consumes ...

Creating a Symbolic Link with ln -s What Comes First?

One thing I've had to google more times than I'd like to admit is the path argument order for the ln command. What comes first in the ln -s command on linux or Mac? So I thought I'd write a little blog entry for future me to find....

ColdFusion 2020 Developer Week - Securing CF

Yesterday I spoke at the Adobe ColdFusion Developer Week online event. There was a great turnout (several hundred attendees), so my thanks to Adobe and Carahsoft for organizing a great event....

Writing a GitHub Actions Workflow that Uses a Docker Image

When working with Github Actions there are a few different ways to write a workflow yaml that uses a docker image or a docker container....

Slides: Continuous Integration Zero to Infinity

It was great to be able to present at the Into The Box 2020 conference again this year. Here are the slides for my talk: Continuous Integration Zero to Infinity....

Dumping HTTP Servlet Request Attributes and Parameters in CF

Here's a little code snippet I wrote many years ago to dump out all the http servlet request attributes or parameters from ColdFusion / Lucee (CFML):

<cfset pageContext = getPageContext()>

<cfset httpReq = pageContext....

Scan CFML for Security Issues from VS Code

Thanks to the new commandbox vscode extension, it is now really easy to scan your CFML code for security issues from VS Code with Fixinator:

Here's how:...

Minibox - a tiny commandbox docker image

I have published a new project called minibox - it is a tiny docker image meant for running commandbox....

Acme Client Error Valid not acceptable for finalization

I have a few static sites that are hosted using Netlify. I received an email from Netlify about one of my sites, a Content-Security-Policy Header Reference that said:

Failed to renew TLS certificate for content-security-policy.com....