Today I Learned (TIL)

Today I Learned (May 21, 2024)

  • ~1 min read

Today is Tuesday, May the 21, 2024 and today I learned …

  • The .rc suffix in some shell configuration files simply means “run commands”

Read More

Today I Learned (May 06, 2024)

  • 1 min read

Today is Monday, May the 06, 2024 and today I learned …

  • That it’s possible to attach a shell to a running container via the DevContainer Visual Studio Code extension
  • How to run a local Kubernetes cluster in a Lima VM with Colima

Read More

Today I Learned (April 12, 2024)

  • 3 min read

Today is Friday, April the 12, 2024 and today I learned …

  • How to minimalize the size of Docker files containing Python executables, using Pip --user install, multi-stage Docker image builds, and minimal Python installations

Read More

Today I Learned (April 09, 2024)

  • 2 min read

Today is Tuesday, April the 09, 2024 and today I learned …

  • That you can fake running on the main branch in GitLab CI/CD by setting CI_COMMIT_BRANCH
  • Arq backup to NAS requires a correct UNC path

Read More

Today I Learned (April 08, 2024)

  • 1 min read

Today is Monday, April the 08, 2024 and today I learned …

  • How to view DICOM medical imaging files in macOS
  • How to export local environment modifications in Nushell
  • That it’s possible to refactor rule conditions in GitLab CI/CD using the custom !reference tag

Read More

Today I Learned (April 05, 2024)

  • ~1 min read

Today is Friday, April the 05, 2024 and today I learned …

  • How to package a Python application using Pyinstaller utilising virtual environments

Read More

Today I Learned (April 04, 2024)

  • 1 min read

Today is Thursday, April the 04, 2024 and today I learned …

  • That pip may also be installed using the ensurepip module bundle with Python
  • How to install pip when using the ppa:deadsnakes/ppa repo for apt to install Python 3.12

Read More

Today I Learned (April 01, 2024)

  • 1 min read

Today is Monday, April the 01, 2024 and today I learned …

  • That I can use custom templates with the Obsidian Daily Notes plug in
  • How to use qualified module imports in Nushell

Read More

Today I Learned (March 30, 2024)

  • 2 min read

Today is Saturday, March the 30, 2024 and today I learned …

  • That GitLab container scanning does not by default support linux/arm64 images.
  • How missing image digests while using docker buildx build may be fixed

Read More

Today I Learned (March 28, 2024)

  • ~1 min read

Today is Thursday, March the 28, 2024 and today I learned …

  • That GitLab CI/CD variable string interpolation expressions only cover a subset of BASH

Read More

Today I Learned (March 27, 2024)

  • 1 min read

Today is Wednesday, March the 27, 2024 and today I learned …

  • How to define a specific shell to run RUN scripts in a Dockerfile
  • How to dynamically load config from a .env file during docker build
  • How to always get output from a Dockerfile RUN directive
  • How to run multiple container scanning jobs via the GitLab container_scanning template

Read More

Today I Learned (March 26, 2024)

  • 1 min read

Today is Tuesday, March the 26, 2024 and today I learned …

  • That it’s possible to install specific versions of a package with apt
  • That AI may be making your code worse (StackOverflow podcast)

Read More

Today I Learned (March 25, 2024)

  • 3 min read

Today is Monday, March the 25, 2024 and today I learned …

  • How to install Python 3.12 via the ppa:deadsnakes repo
  • How to install pip with the get-pip.py script
  • How to run pre-commit checks in a pipeline for the latest commit
  • How to build ARM64 images on an X86 machine

Read More