Skip to content

Instantly share code, notes, and snippets.

View stain's full-sized avatar

Stian Soiland-Reyes stain

View GitHub Profile
[ NFSMount_Global_Options ]
Proto=tcp6
Retrans=4
Timeo=600
Soft=True
Sec=krb5p:krb5i
Nfsvers=4
root@zfsfun:~# zpool create tank sdb
root@zfsfun:~# zfs create tank/test
root@zfsfun:~# cd /tank/test/
root@zfsfun:/tank/test# for n in 1 2 3 4 5 6 7 8 9 ; do cp -a /boot $n & done
root@zfsfun:/tank/test# zpool status tank
pool: tank
state: ONLINE
@stain
stain / zfs-test.sh
Last active June 19, 2020 13:12
Tested on Ubuntu 20.04 VM
root@zfsfun:/tank/test# zfs --version
zfs-0.8.3-1ubuntu12.1
zfs-kmod-0.8.3-1ubuntu12
root@zfsfun:~# zpool create tank sdb
root@zfsfun:~# zfs create tank/test
root@zfsfun:~# cd /tank/test
@stain
stain / schema-skos-transitive.jsonld
Last active November 23, 2021 11:18
SKOS transitive version of schema.org 8.0 class hierarchy - SPARQL executed on all-frames.nt from https://schema.org/docs/developers.html
{
"@graph" : [ {
"@id" : "http://schema.org/",
"@type" : "skos:ConceptScheme",
"hasTopConcept" : "schema:Thing"
}, {
"@id" : "schema:3DModel",
"@type" : "skos:Concept",
"broader" : [ "schema:Thing", "schema:CreativeWork", "schema:MediaObject" ],
"broaderTransitive" : "schema:MediaObject",
@stain
stain / schema-skos-flattened.jsonld
Last active June 12, 2020 16:46
SKOS version of schema.org 8.0 class hierarchy - SPARQL executed on all-frames.nt from https://schema.org/docs/developers.html
{
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"owl": "http://www.w3.org/2002/07/owl#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"@base": "http://schema.org/"
},
"@graph": [
{

Do NOT transfer my account to Office 365.

(Ignore my comments in 213335 as I believed IMAP would remain available in Office 365 until October 2020 )

I have just been told that IMAP on Office365 has already been disabled, counter to the guidance on your website, which said from "October" (which year?)
https://www.staffnet.manchester.ac.uk/modernising-it/technology/office365/resources/

As a Linux user I do not have Outlook, and with 6000 monthly emails I rely heavily on filtering and local search using offlineimap and notmuch.

@stain
stain / docker-compose.override.yml
Last active March 27, 2020 17:03
nanopub-server under single hostname https on Ubuntu 16.04
version: '2'
volumes:
mongodata:
rdfsink:
virtuosodb:
services:
server:
environment:
- NPS_PUBLIC_URL=https://openphacts.cs.man.ac.uk/nanopub/server/
ldf:
--- index.html 2019-10-18 14:47:15.867443397 +0100
+++ html5.html 2019-10-18 14:51:47.656129865 +0100
@@ -1,10 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="no" lang="no">
+<html lang="no">
<head>
Long-running script killed after 20 seconds: Javascript expression was: { return {"lines": inputs.file.contents.trim().split(/\r?\n/g) }; }
stdout was:
stderr was:
WARNING Failed to evaluate expression:
Expression evaluation error:
Expecting value: line 1 column 1 (char 0)
script was:
01 "use strict";
02 var inputs = {
03 "file": {
document
prefix ex <http://example.com/survey4/>
agent(ex:alice)
agent(ex:bob)
entity(ex:response1)
wasAttributedTo(ex:response1, ex:patient4)