
Backporting/Replaying Changes Using git cherry-pick
Using git cherry-pick to make it easier to backport or replay Git commits across different versions of your codebase.
28 October 2018 · 6m
www.jvt.me • by Jamie Tanna
Backporting/Replaying Changes Using git cherry-pick
Using git cherry-pick to make it easier to backport or replay Git commits across different versions of your codebase.
28 October 2018 · 6m
www.jvt.me • by Jamie Tanna

DevOpsDays London 2018
My writeup of my first DevOpsDays conference, and the awesome talks and conversations I was part of.
25 October 2018 · 52m
www.jvt.me • by Jamie Tanna
Showing response headers with curl -i
Showing just response headers when curling a resource, using curl -i.
19 October 2018 · 3m
www.jvt.me • by Jamie Tanna
Safely Force Pushing with Git using --force-with-lease=ref
How git push --force-with-lease=ref can save you from overriding others' changes on shared Git branches.
18 September 2018 · 6m
www.jvt.me • by Jamie Tanna

Viewing Git history of a file in git log while ignoring file renames
How to track changes to files in Git without pesky file renames getting in the way, using git log --follow.
11 September 2018 · 5m
www.jvt.me • by Jamie Tanna
Test-Driven Chef Cookbook Development Using ChefSpec (and a sprinkling of InSpec)
Using the example of deploying and running a Java JAR file as a way to show the lifecycle of a fully test-driven Chef cookbook.
4 September 2018 · 39m
www.jvt.me • by Jamie Tanna
Pretty Printing JSON Web Tokens (JWTs) on the Command Line using Ruby
How to easily introspect and pretty print a signed JWT (JWS) or an encrypted JWT (JWE) on the command line using Ruby's standard library, or using the ruby-jwt external library.
31 August 2018 · 3m
www.jvt.me • by Jamie Tanna
Using chef-shell to interactively debug attributes and recipes
How to use chef-shell to see attribute config and recipes, with and without a Chef Server.
29 August 2018 · 5m
www.jvt.me • by Jamie Tanna
OggCamp 2018
A look at my time at OggCamp 2018, the talks I presented and attended.
23 August 2018 · 21m
www.jvt.me • by Jamie Tanna

Creating a versionable, self-contained (fat-/uber-) JAR for Cucumber tests
Why you'd want a fat JAR and how you'd achieve it.
15 August 2018 · 11m
www.jvt.me • by Jamie Tanna



Notes from the AWS + Chef Dev Day Roadshow in London
Notes from the AWS Dev Day Roadshow in London, where we got to play around with Chef, Chef Automate and InSpec using AWS OpsWorks.
24 June 2018 · 13m
www.jvt.me • by Jamie Tanna
Pretty Printing JSON on the Command Line with Ruby
Using Ruby's JSON module to pretty print JSON objects from the command line.
18 June 2018 · 1m
www.jvt.me • by Jamie Tanna
Merging multiple repositories into a monorepo, while preserving history, using git subtree
How to merge multiple repositories, with their history, into a single repository, using the git subtree add command.
1 June 2018 · 3m
www.jvt.me • by Jamie Tanna
Sharing Multiple SSH Sessions over the Same Network Socket
Reusing network sockets for speed and reduction of authentication handshakes with OpenSSH.
4 May 2018 · 3m
www.jvt.me • by Jamie Tanna
Better Git Diff Outputs with Git Submodules
How to get nicer diffs when working with submodules.
4 May 2018 · 2m
www.jvt.me • by Jamie Tanna
Beware: deleteing a file in Chef doesn't actually delete it
Why you should explicitly add backup false when deleteing a file through Chef, to avoid leaving potentially sensitive files still on the box.
30 April 2018 · 2m
www.jvt.me • by Jamie Tanna
Morsels of Goodness: What's Cooking in Chef 14?
A look at the new features coming in the new Chef 14 release, as well as what to watch out for when upgrading.
23 April 2018 · 5m
www.jvt.me • by Jamie Tanna

Serving Branches on a Subdomain using Caddy and GitLab Review Apps
How to dynamically serve a branch on a subdomain for GitLab Review Apps using Caddy Labels.
15 April 2018 · 2m
www.jvt.me • by Jamie Tanna
Deploying to Netlify using GitLab CI
How adding two lines to my .gitlab-ci.yml migrated my existing site from GitLab Pages to Netlify.
12 April 2018 · 3m
www.jvt.me • by Jamie Tanna
Executing an Interactive Python Shell (REPL) for a Script
Using python -i to get an interactive REPL after running a Python source file.
8 April 2018 · 1m
www.jvt.me • by Jamie Tanna
Bundling Common Rake Tasks into a Gem
An example of how to create a helper gem for common Rake task, using the real-world example of Chef cookbooks.
5 April 2018 · 8m
www.jvt.me • by Jamie Tanna
Running docker login as another user in Chef
Hitting the error permission denied while trying to connect to the Docker daemon socket when trying to run docker login as a non-root user in Chef.
26 March 2018 · 2m
www.jvt.me • by Jamie Tanna
My First Week Back to Working (Remotely) After Three Months
How I've found the first week back to work after almost three months, and the productivity gains of working reduced hours.
15 March 2018 · 6m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: knife-cookbook-doc Rubocop Updates
Disabling the Missing space after # and Do not use block comments errors for your knife-cookbook-doc formatted comments.
9 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: knife-cookbook-doc gem upgrade
Fixing odd Logger entries in autogenerated knife-cookbook-doc README.mds for Chef 13.
7 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: Deprecation of Namespace Collisions in Custom Resources
Preparing for breaking changes in Chef 14 by renaming property_name to new_resource.property_name in Custom Resources.
7 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Verify a Ruby Class Method is Called with Arguments in Rspec, Without Doubles or Mocks
Rspec code to verify that a Ruby Class Method is called from another method, without needing to mock anything.
7 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Testing Chef's ruby_blocks with ChefSpec
Testing implementation of a ruby_block in ChefSpec, to ensure that the code executes as expected.
7 March 2018 · 3m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: Lessons Learnt and Documented for Posterity
Notes on the main problems encountered when upgrading from Chef 12 to Chef 13, both with ChefSpec and Rubocop.
6 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: Rubocop Changes for lazy Parameters
How to resolve the Parenthesize the param lazy Rubocop error when upgrading your cookbook to Chef 13.
6 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: Rubocop Changes for Testing render_file with ChefSpec and a with_content Block
How to resolve the Parenthesize the param render_file Rubocop error when upgrading your cookbook to Chef 13.
6 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: Rubocop Changes for Word Array Literals (%w)
A one-liner shell command to fix Rubocop errors %w-literals should be delimited by [ and ].
6 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Chef 13 Upgrade: Testing ruby_blocks with ChefSpec
Replace your block.old_run_action with block.block.call to trigger ruby_blocks within ChefSpec 7 and Chef 13.
6 March 2018 · 1m
www.jvt.me • by Jamie Tanna
Emoji Support in Dunst
How to see Emoji when using the Dunst notification system.
28 February 2018 · 2m
www.jvt.me • by Jamie Tanna
SSLError When Running Berkshelf Behind a Proxy
Getting around the pesky OpenSSL::SSL::SSLError SSLv2/v3 read server hello A error when running Berkshelf behind a proxy.
16 February 2018 · 2m
www.jvt.me • by Jamie Tanna


Hackference 2017
My summary of the Hackference 2017 conference and hackathon.
5 February 2018 · 8m
www.jvt.me • by Jamie Tanna
Running service resources in Kitchen-Docker
How to get up and running with service resources when running Test Kitchen with the Docker driver, in this example for use with GitLab CI.
3 September 2017 · 3m
www.jvt.me • by Jamie Tanna
Trusting Self-Signed Certificates from the Chef Development Kit
How to get the ChefDK (and associated tools) to trust internal / self-signed certificates, in an easy oneliner.
17 August 2017 · 2m
www.jvt.me • by Jamie Tanna
Getting around Permission Denied when running ChefSpec
How to handle getting an EACCES when trying to run ChefSpec on a recipe.
12 August 2017 · 3m
www.jvt.me • by Jamie Tanna
GitLab Review Apps with Capistrano and Nginx
Spinning up a version of your application on every push, so others don't have to manually get the code up and running locally.
18 July 2017 · 4m
www.jvt.me • by Jamie Tanna
Testing include_recipes with Chef and ChefSpec
How to best test include_recipes within your Chef recipes, as well as how to ensure that you aren't running any dependent recipes in your tests.
16 July 2017 · 2m
www.jvt.me • by Jamie TannaEvery post, by when it was posted. The brighter a month, the more was posted that month.