Skip to content

Instantly share code, notes, and snippets.

@thbar
thbar / _readme.md
Last active July 17, 2024 18:54
Using minitest to regression test your Jekyll static site

Using minitest to regression-test your Jekyll static site

I recently had to upgrade my blog, which involved changes such as:

  • Replacing a sitemap plugin
  • Upgrading from jekyll 2.5.3 to 3.8.4
  • Upgrading from jekyll-assets 0.7.8 to 3.0.11
  • (etc)

The upgrading process was not trivial, and some parts (e.g. RSS, sitemap, or twitter cards tags) are not immediately visible, so I decided to add unit tests on the generated content.

@charud
charud / Fish Config
Last active November 20, 2016 21:28
# Autojump
[ -f /usr/local/share/autojump/autojump.fish ]; and . /usr/local/share/autojump/autojump.fish ]
# [ -f /usr/local/Cellar/autojump/22.2.4/share/autojump/autojump.fish ]; and . /usr/local/Cellar/autojump/22.2.4/share/autojump/autojump.fish ]
# Git Branch in terminal
set fish_git_dirty_color red
set fish_git_not_dirty_color green
function parse_git_branch
@lancew
lancew / gist:4001624
Created November 2, 2012 14:19
xmonad natural scrolling
echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap