Skip to content

Instantly share code, notes, and snippets.

@iangreenleaf
iangreenleaf / npm-troubleshooter
Last active March 26, 2024 16:50
THE MULTI-PURPOSE NPM TROUBLESHOOTING SCRIPT
#!/bin/bash
# THE MULTI-PURPOSE NPM TROUBLESHOOTING SCRIPT
# Guaranteed to fix any and every problem with your npm install!**
#
# © ️Ian Young 2016
#
# Usage:
# Simply run the script, passing as arguments the command that is failing.
# Come back in 1-45 minutes to a totally fixed npm install.
@iangreenleaf
iangreenleaf / Gemfile
Last active January 25, 2018 17:49
Usage example of the Bundler plugin I built for testing with JSON fixtures
source "test/fixtures/my_rubygems_fixture", type: "json_fixture" do
gem "whatever"
gem "foobar", "~> 1.0.1"
end
@iangreenleaf
iangreenleaf / shotwell_metadata_fix.sh
Last active January 8, 2019 17:41
Shotwell RAW metadata migrator - rescue your data from Shotwell
#!/bin/bash
# Shotwell RAW metadata migrator
#
# This software is provided WITHOUT WARRANTY OF ANY KIND
#
# Shotwell doesn't write metadata to RAW files. This was a problem when I wished to migrate all my data out of Shotwell.
# This script pulls data out of Shotwell's database and writes it to the files using exiftool.
# This is not elegant, performant, or well-tested. However, it seems to get the job done!
#
@iangreenleaf
iangreenleaf / lychee_tag.rb
Last active April 7, 2021 04:48 — forked from tobru/lychee_tag.rb
A Liquid tag for Jekyll sites that allows embedding Lychee albums. See https://tobrunet.ch/articles/jekyll-meets-lychee-a-liquid-tag-plugin/
# Connects Jekyll with Lychee (http://lychee.electerious.com/)
#
# # Features
#
# * Generate album overview and link to image
# * Caching of JSON data
#
# # Usage
#
# {% lychee_album <album_id> %}