Skip to content

Instantly share code, notes, and snippets.

View datadavev's full-sized avatar

Dave Vieglais datadavev

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<# Based on https://git.psu.edu/digipres/scripts/-/blob/master/metadata/arks.ps1
Mint a test identifier on EZID stage using powershell.
e.g.:
$ pwsh ./mint_ark.ps1
Minted: ark:/99999/fk4dn5nm4d
Metadata:
@datadavev
datadavev / readme.ipynb
Last active August 2, 2022 18:59
Basic setup for solr nested docs / graph searching
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"@context": [
"http://schema.org",
{
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
}],
{
"fields":[
{
"name":"id",
"title": "Identifier",
"type": "string",
"description":"Unique identifier for each row of the table"
},
{
"name":"label",
@startuml
actor browser
participant geosamples as "app\n.geosamples\n.org"
participant geopass as "geopass\n.iedadata\n.org"
browser -> geosamples: [1] login.php
geosamples --> browser: 200
browser -> browser: Click button
browser -> geosamples: [2] /geopass_auth.php
note left of geosamples: No user session.\n\nRedirect to https://geopass.iedadata.org/\n josso/signon/login.do?\n josso_back_to=\n https://app.geosamples.org/\n geopass/josso-security-check.php\n &josso_partnerapp_host=app.geosamples.org
@datadavev
datadavev / isample_stream.js
Created March 9, 2022 16:41
Streaming 500k points from isamples to Cesium
const sc = document.createElement("script");
sc.type="module";
sc.onload = showData;
sc.src="https://unpkg.com/oboe@2.1.5/dist/oboe-browser.js";
document.head.appendChild(sc);
const serviceEndpoint = "https://mars.cyverse.org/";
function pointStream(params={}, perdoc_cb=null, finaldoc_cb=null, error_cb=null) {
@datadavev
datadavev / index.js
Created January 11, 2022 20:42
simple solr-facet-react
import React from "react";
import ReactDOM from "react-dom";
import {
SolrFacetedSearch,
SolrClient
} from "solr-faceted-search-react";
import solrReducer from "./solr-reducer";
import { createStore } from "redux"
#!/bin/bash
# Run sudo updatedb first
# Then run this with sudo if read access to any jars is restricted
TEST='JndiLookup'
LOGF="$(date --iso-8601=date)-${TEST}-search.txt"
echo "Logging to ${LOGF}..."
echo "# Generated $(date --iso-8601)" > $LOGF
echo "# Locate ${TEST}" >> $LOGF
echo "# " >> $LOGF
{
"@context": {
"@vocab":"http://a.b/c/"
}
}