The (not so) Weekly Fitz
  • Home
  • Serverless
  • Swift
  • Stable Diffusion
Sign in Subscribe

shell

Metaprogramming in Swift, and the issue with Process and relative paths

Find out why your Swift CLI tool isn't capable of dealing with relative paths, and how to solve it!
ElFitz 23 Mar 2023
From a base64 API Key to a json file, in bash, on macOS

From a base64 API Key to a json file, in bash, on macOS

While working on a client's app's CI pipeline, I needed to use an API key. However, it was stored as a base64 environment variable, when the tool I needed to use required it to be plaintext in a JSON file. Fun times.
ElFitz 28 Jun 2022
Escape a newline in bash on macOS

Escape a newline in bash on macOS

While setting up a new step for a client's CI pipeline on a macOS agent, I needed to export an API key containing line breaks to a JSON file. Meaning I had to escape line breaks, in bash, on macOS. Turns out, it's not as easy as it sounds. Who would've guessed?
ElFitz 16 Jun 2022

Subscribe to The (not so) Weekly Fitz

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
Thoughts, stories and ideas.