Skip to content

Instantly share code, notes, and snippets.

View maxstarkenburg's full-sized avatar

Max Starkenburg maxstarkenburg

View GitHub Profile
@maxstarkenburg
maxstarkenburg / BookCosts
Last active June 12, 2016 05:52
A shell/gawk script that runs through the private comment field of my tab-separated LibraryThing export file, looks for monetary values I put there, converts them to dollars when necessary, adds up the total I've spent on books, and outputs a histogram of the amount of books I've bought per dollar amount.
#!/bin/sh
cat $1 |
# Remove the titles on the first line
sed 1d |
gawk '
BEGIN {
# This migration demonstrates importing from a monolithic JSON file.
# Forked from https://github.com/heddn/json_example_migrate/blob/json/web/modules/custom/custom_migrate/config/install/migrate_plus.migration.omdb_json.yml
id: omdb_json
label: JSON feed of movies
migration_group: json_example
source:
# We use the JSON source plugin.
plugin: url
data_fetcher_plugin: http
data_parser_plugin: json