Skip to content

Instantly share code, notes, and snippets.

View joshbeard's full-sized avatar
👽
stranger in a strange land

Josh Beard joshbeard

👽
stranger in a strange land
View GitHub Profile
@joshbeard
joshbeard / terminal-record.md
Created December 22, 2022 02:48
Terminal screen recording

Terminal Screen Recording

  1. Install asciinema.

    Homebrew:

    brew install asciinema
@joshbeard
joshbeard / eks-k8s-renovate.md
Created January 23, 2024 16:11
EKS Kubernetes version with Renovate

eks-k8s-version-scraper.js

// Script to scrape the EKS Kubernetes versions from the AWS documentation
// and produce a JSON file that Renovate can parse.
// Usage: node eks-k8s-version-scraper.js > eks-k8s-versions.json
const axios = require('axios');
const cheerio = require('cheerio');
const fs = require('fs');
@joshbeard
joshbeard / frontmatter.tf
Created July 19, 2024 16:05
Parse Markdown Front Matter with Terraform
# Helper module for parsing front matter from a markdown file and returning
# the front matter content as a map.
#
# Usage:
# module "frontmatter" {
# source = "./path/to/modules/frontmatter"
# content = file("path/to/markdown/file.md")
# }
#
# output "title_from_front_matter" {