Quick bash script for testing URL status code

Here is a quick script I have written in Bash to get URL status codes. An application in a container I have been working was failing to retrieve a file from somewhere on the internet. I needed to determine if the issue was with the container(possibly networking related) or the application. I threw together this little reusable script utilizing curl.

December 17, 2020 · 1 min · chart

Using DinkToPDF on Alpine Linux

One of my recent projects has been containerizing a .NET Core 2.1 application which uses DinkToPDF for producing PDFs. I always default to Alpine for my containers. Here I’ll describe using DinkToPDF on Alpine Linux. At the time of writing, the current version of Alpine in 3.12, that is what I started with. My Alpine Linux Environment I am doing my testing in a container built from mcr.microsoft.com/dotnet/core/aspnet:2.1-alpine3.12 The Issue with DinkToPDF This error was getting throw each time I tried to use Dink....

December 16, 2020 · 3 min · chart

Fix error sam deploy unable to locate credentials using AWS SAM with AWS CLI v2 SSO

I got this error sam deploy unable to locate credentials when trying to use AWS SAM with AWS CLIv2 SSO. Error: Unable to upload artifact myAPIName referenced by CodeUri parameter of myAPIName resource. Unable to locate credentials In summary, the fix is to update SAM. The issue: sam deploy unable to locate credentials First, I signed into AWS SSO with the profile I wanted to use. $ aws sso login --profile new-dev-sso Then, I tried to run sam deploy....

October 7, 2020 · 1 min · chart

Install AWS SAM CLI on Linux without Homebew

The official AWS installation docs for Linux tell you to install Homebew so that you can install the AWS SAM CLI. This is just plain dumb. You should not need to install a new package manager just to install one tool. Below are the steps to follow so that you do not have to. Prerequisites Ensure Python 3 is install Ensure PIP 3 is installed Ensure AWS CLI v2 is installed and configured...

July 17, 2020 · 1 min · chart

AWS WordPress Blog: Part 2 – Deploy the EC2 Instance

Full AWS WordPress Blog series so far: AWS WordPress Blog: Part 1 – Buy a domain AWS WordPress Blog: Part 2 – Deploy the EC2 Instance This is the second article in a series which will detail how to deploy a WordPress server at AWS the cheapest way possible. This series will teach you about Route53, EC2, S3, CloudFront, IAM, and more! All while helping you setup your own blog which every good IT professional should have....

May 14, 2020 · 3 min · chart

Copy Firefox Logins and Bookmarks to a new computer or login on Linux

How to copy Firefox saved logins and password, autofill data, and bookmarks over to a new computer, a new profile or a new user. While its best to use a more secure password manager such as keeper or Lastpass, if you do have some of your passwords stored in the built-in Firefox password manager this will show you step by step how to copy them over. PreReq: Figure out which profile is default Open your preferred terminal....

May 4, 2020 · 3 min · chart