Skip to content

Instantly share code, notes, and snippets.

@tigris
tigris / kwargs-splats.rb
Created March 15, 2023 05:30
kwargs and splats
#!/usr/bin/env ruby
##### KWARGS
def kwargs(foo:, bar:)
puts "foo: #{foo}"
puts "bar: #{bar}"
end
@tigris
tigris / datetime.rb
Created February 29, 2024 04:36
Ruby DateTime#next_year on leap days
#!/usr/bin/env ruby
require 'date'
now = DateTime.now
yesterday = now - 1
puts "Now: #{now}"
puts "Yesterday: #{yesterday}"
puts "======"
@tigris
tigris / issues.md
Last active September 18, 2025 13:37
docker-compose-buildkite-plugin cache issues

docker-compose-buildkite-plugin cache issues

Context

We noticed a bunch of issues related to cache hits when using the docker-compose-buildkite-plugin to do docker builds.

List of things found

  1. There is (was?) a bug in moby/buildkite where using --cache-from was only getting cache hits on every second build
  2. The above bug was fixed in 2024 but this fix has not yet made it into the buildkite elastic-ci-stack OSS CI stack