Skip to content

Instantly share code, notes, and snippets.

Ducking and diving

Daniel Pett portableant

Ducking and diving
View GitHub Profile
portableant / objects.json
Last active Jul 6, 2022
A response from the Fitzwilliam Museum Collections API
View objects.json
"data": [
"summary": [
"term": "term-117732",
"URI": "",
"apiURI": "",
"summary_title": ""3-Swami" Pagoda"
portableant /
Last active May 28, 2022
Download data

Scraping data from ESRI Arcview maps/ extract images from Web resources

NOTE - The rscripts are not optimised, they were just created to prove this can be done

Problem to solve - extract all the records from a webmap on Historic England's website for aerial photography and create a CSV file. This relates to a section 21 refusal of a FOIA request by Andy Mabbett:

He has uploaded an example image to wikicommons here:

portableant /
Last active May 10, 2022
How to upgrade SOLR instance from 8.3 to 8.11.1

How to upgrade SOLR instance from 8.3 to 8.11.1

This is how I got the SOLR upgrade process to run. There was nothing else to run!


To upgrade I did the following:

  1. Backup your data
  2. Stop the solr service
  3. Download the latest version
View gist:0608119edcdc0a239acb6cd960931b4d
<a href="" title="Sign up for enews" class="btn btn-info d-block">Tickets coming soon, sign up to our eNews for more information.</a>
View gist:463c24d00e46493f2e964b616e9dff51
<!--tag buttons style-->
.btn-tag {
margin-bottom: 5px;
text-transform: capitalize;
.btn-tag.connections {
background-color: rgba(255, 255, 157, 0.5);
View gist:a57a7699300e3add60b31d18698e4157
<div class="col-12 shadow-sm p-3 mx-auto mb-3 ">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" title="A YouTube video from the Fitzwilliam Museum"
src="{{page.video_id}}" frameborder="0"
View subs.txt
متحف فيتزويليام، كامبريدج
بورتريهات مومياوات العصر الروماني
تقنيات الرسم والتلوين
انا د.لوسي رابسون
متخصصة في ترميم اللوحات بمعهد
portableant / fitz.json
Created May 19, 2021
Fitzwilliam Museum boundary
View fitz.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
portableant / code.js
Created May 18, 2021
Google action script for parsing sheets data to docs template replacements
View code.js
function createDocument() {
// Get the headers from a sheet with the sheet id number
var headers = Sheets.Spreadsheets.Values.get('1-3du2O3thRu4Ynj_6ShC0tajxjXOiAufA68Uq_z_F6M', 'A1:AU1');
// Define the area from which to pull data. Assume 200 rows
var starters = Sheets.Spreadsheets.Values.get('1-3du2O3thRu4Ynj_6ShC0tajxjXOiAufA68Uq_z_F6M', 'A2:AU200');
// Define your google document template id number
var templateId = '1tSMgb6m7IfbhSdAeGx2tqYS5fDG5uRyFBVEfmhPUDDA';
for(var i = 0; i < starters.values.length; i++){
portableant /
Created Apr 12, 2021
Jekyll bundle fail - OSX Big Sur Ruby 3.0.0


bundle exec jekyll serve Configuration file: /Users/danielpett/Documents/githubProjects/steppe-gold/_config.yml Source: /Users/danielpett/Documents/githubProjects/steppe-gold Destination: /Users/danielpett/Documents/githubProjects/steppe-gold/_site Incremental build: disabled. Enable with --incremental Generating... Jekyll Feed: Generating feed for posts done in 0.462 seconds.