Pete Freitag's Homepage

List Logical Names from SQL Server bak file

When restoring a SQL Server database from a bak file you may need to know what the Logical Names of the storage files are in order to restore them....

Solved: Git Clone Large Repo Download Errors

When attempting to clone a large git repository over https, hosted on an on premise GitLab instance, I kept getting the error:

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

fatal:...

Searching for files by file name on Mac or Linux

Have you ever had to find a file by a file name or file extension? Sure you have! Here's how I locate a file when I'm using a Mac or Linux shell....

Running PostgreSQL in Docker for local dev

Recently I blogged about how I'm running SQL Server on Mac with Docker and Oracle on a Mac with Docker, so here's how you can run PostgreSQL locally using Docker... more specifically docker-compose....

Markdown Bullet Lists or UL Lists

Here is a quick guide to creating bullet lists, also known as ul lists or unordered lists with Markdown.

You can use * or -

As long as you start the line with a * or a - markdown will interpret that as a list item....

Is it necessary to cfqueryparam all values?

I had a question today asking why Fixinator does not add cfqueryparam to static values within a query....

How to run Oracle DB on a Mac with Docker

Oracle puts out a Windows and Linux binary for their Oracle Database servers, but what if you want to run it on a Mac? The solution for a while was to use a VM and boot up the linux version. Nowadays using Docker is a little bit easier....

Timing Attacks and the Timing-Allow-Origin Header

I've always found Timing Attacks to be an interesting type of web application vulnerability. You need to understand timing attacks before you can understand how to use the Timing-Allow-Origin http response header....

Counting IP Addresses in a Log File

I've been using grep to search through files on linux / mac for years, but one flag I didn't use much until recently is the -o flag. This tells grep to only output the matched pattern (instead of lines that mach the pattern)....

Recursively Counting files by Extension on Mac or Linux

...

Hacktoberfest Tips for Contributors

It never ceases to amaze me how many people will emerge out of the woodwork to earn a free T-Shirt each October! As someone who runs a moderate sized open source project that has merged over 900 pull requests, I always see a big increase in activity ...

Slides from my 2019 ColdFusion Summit Las Vegas Talk

The slides for my talk Approaches to secure CFML code can be found here. The source code for the Bank of Insecurity application (which is full of security holes) can be found: here.

Overall I thought the CFSummit event was a great success....
there is more to this site: sitemap