Skip to content

Instantly share code, notes, and snippets.

@mdoering
mdoering / statusline-command.sh
Created April 29, 2026 08:50
Claude Statusline script
#!/bin/sh
input=$(cat)
GREEN='\033[32m'
YELLOW='\033[33m'
RED='\033[31m'
BLUE='\033[34m'
CYAN='\033[36m'
WHITE='\033[37m'
RESET='\033[0m'
@mdoering
mdoering / america.html
Created March 18, 2026 08:42
God bless America
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Not America — A Continent's Complaint</title>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=IBM+Plex+Mono:wght@400;500&family=Libre+Baskerville:ital@0;1&display=swap" rel="stylesheet">
<style>
:root {
--ink: #0e0e0e;
@mdoering
mdoering / index.html
Created February 27, 2026 11:17
GBIF Taxonomy Map Comparison
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GBIF Map Comparison</title>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@4/dist/maplibre-gl.css">
<script src="https://unpkg.com/maplibre-gl@4/dist/maplibre-gl.js"></script>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@mdoering
mdoering / gist:dd6a2c9e182af792333a356b4ac6cc54
Created November 11, 2025 11:25
non unique plazi DOIs
non unique DOI 10.1111/j.1096-3642.2006.00237.x from updated dataset 275756: A new species of the genus Lightiella: the first record of Cephalocarida (Crustacea) in Europe
non unique DOI 10.1649/0010 from updated dataset 276466: Clarification of the Correct Original Spelling of Caecomenimopsis jamaicensis Dajoz (Coleoptera: Tenebrionidae: Diaperinae: Gnathidiini: Anopidiina)
non unique DOI 10.1649/0010 from updated dataset 276467: Fig. 2 in Food Relocation Behavior, Nests, and Brood Balls of Canthon quinquemaculatus Laporte de Castelnau (Coleoptera: Scarabaeidae: Scarabaeinae)
non unique DOI 10.1111/j.1096-3642.2005.00152.x from updated dataset 276480: A new species of Halisaurus from the Late Cretaceous phosphates of Morocco, and the phylogenetical relationships of the Halisaurinae (Squamata: Mosasauridae)
non unique DOI 10.1046/j.1096-3642.2003.00068.x from updated dataset 276482: Pindamoraria boraceiae, a new genus and species of freshwater Canthocamptidae (Copepoda, Harpacticoida) from Brazil
non unique D
@mdoering
mdoering / query.json
Last active November 10, 2025 15:34
GBIF Download Query - Dracula Types
{
"creator": "USERNAME",
"notificationAddresses": [
"EMAIL_ADDRESS"
],
"sendNotification": true,
"format": "SIMPLE_CSV",
"checklistKey": "7ddf754f-d193-4cc9-b351-99906754a03b",
"predicate": {
"type": "and",
@mdoering
mdoering / bitwarden-import.py
Created March 1, 2025 12:37
1Password importer script for unencrypted Bitwarden JSON exports
#!/usr/bin/python3
import json, asyncio, os, re, sys
from onepassword.client import Client
from onepassword import *
VAULT_ID="XXX" # your 1Password vault identifier to import to
@mdoering
mdoering / names.tsv
Created July 18, 2024 10:05
ChecklistBank name matching input example file
ID rank scientificName authorship kingdom family
id1000 species Cactus affinis Kuntze Plantae Cactaceae
id1001 species Cactus cactus (Vávra, 1900) Animalia Macrothricidae
id1002 genus Oenanthe
id1003 genus Oenanthe L.
id1004 genus Oenanthe Plantae
id1005 genus Oenanthe Animalia
id1006 species Abies alba Mill.
article
Bankí, O., Roskov, Y., Hernández, D., & Plata, C. (2024). Catalogue of Life (Version 2024-06-15). Catalogue of Life. https://doi.org/10.15468/col.grt63j
article-journal
Bankí, O., Roskov, Y., Hernández, D., & Plata, C. (2024). Catalogue of Life. https://doi.org/10.15468/col.grt63j
article-magazine
Bankí, O., Roskov, Y., Hernández, D., & Plata, C. (2024, June 15). Catalogue of Life. https://doi.org/10.15468/col.grt63j
article-newspaper
Bankí, O., Roskov, Y., Hernández, D., & Plata, C. (2024, June 15). Catalogue of Life. https://doi.org/10.15468/col.grt63j
bill
Catalogue of Life, (2024) (testimony of Olaf Bankí, Yuri Roskov, Diana Hernández, & Camila Plata). https://doi.org/10.15468/col.grt63j

Configs & UI

Sector Configs

  • split sectors by code, e.g. IUCN
  • configs, notes
  • search for attach sectors, show FADA Moinidae placed in infra/suborder
  • priority
  • ITIS, WCVP, WoRMS again. Reuse base decisions (search for WCVP), but not for WoRMS which are separate datasets.
    • block or update decision (author, status change)
  • sector publisher
@mdoering
mdoering / xrelease-demo-cfg.yaml
Last active April 3, 2024 13:41
XRelease demo config
# parts of this extended COL checklist configuration was copied from the backbone configs:
# https://github.com/gbif/gbif-configuration/blob/master/cli/nub/config/clb-nub.yaml
# dataset metadata with project variables to be applied to each release
alias: "MD-{attempt}"
title: Merge Demo
version: "{attempt}"
# taxon to use for incertae sedis names during merges
incertaeSedis: