Skip to content

Instantly share code, notes, and snippets.

View portableant's full-sized avatar
Ducking and diving

Daniel Pett portableant

Ducking and diving
View GitHub Profile
portableant / objects.json
Last active July 6, 2022 13:22
A response from the Fitzwilliam Museum Collections API
"data": [
"summary": [
"term": "term-117732",
"URI": "",
"apiURI": "",
"summary_title": ""3-Swami" Pagoda"
portableant /
Last active May 28, 2022 08:55
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 22:48
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
<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>
<!--tag buttons style-->
.btn-tag {
margin-bottom: 5px;
text-transform: capitalize;
.btn-tag.connections {
background-color: rgba(255, 255, 157, 0.5);
<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"
portableant / subs.txt
Created July 3, 2021 09:50
متحف فيتزويليام، كامبريدج
بورتريهات مومياوات العصر الروماني
تقنيات الرسم والتلوين
انا د.لوسي رابسون
متخصصة في ترميم اللوحات بمعهد
portableant / fitz.json
Created May 19, 2021 10:07
Fitzwilliam Museum boundary
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 20:09
Google action script for parsing sheets data to docs template replacements
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 April 12, 2021 10:51
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.