Skip to content

Instantly share code, notes, and snippets.

Avatar

Stian Soiland-Reyes stain

View GitHub Profile
@stain
stain / .notmuch-config
Last active Oct 25, 2020
NotMuch hooks for selectively sorting to inbox, moving archived messages to other folder. offlineimap syncs to /home/USER/mail/company and /home/USER/mail/org1
View .notmuch-config
[database]
path=/home/USER/mail
[user]
name=MyName MySurname
primary_email=me@example.com
other_email=me@example.org
@stain
stain / vocabulary-jsonld.json
Last active Oct 18, 2020
Example of how a simple OWL ontology / RDFS vocabulary could be defined with JSON-LD, defining the meaning of properties and classes. The second file shows the RDF triples of the vocabulary by using the JSON-LD sandbox. As a visualization - see http://www.essepuntato.it/lode/owlapi/https://gist.github.com/stain/7690362/raw/114f836a64291a3f894c44…
View vocabulary-jsonld.json
{ "@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"owl": "http://www.w3.org/2002/07/owl#",
"express": "http://example.com/express#",
"defines": {
"@reverse": "rdfs:isDefinedBy"
},
"propertyOf": {
"@id": "rdfs:domain",
@stain
stain / Dataset.yaml
Last active Oct 8, 2020
example output from bioschemas/ProfileGenerator
View Dataset.yaml
Overwrite Dataset-0.1-DRAFT.html (Y/n): ---
name: Dataset
official_type: Dataset
type_base_url: https://schema.org/
description: "A body of structured information describing some topic(s) of interest."
version: '0.1'
version_date: 20201008T023206
status: DRAFT
spec_type: Profile
group: Dataset
View nfsmount.conf
[ NFSMount_Global_Options ]
Proto=tcp6
Retrans=4
Timeo=600
Soft=True
Sec=krb5p:krb5i
Nfsvers=4
View gist:2dc796a0fa7ff0b1a80b3f998b47e07f
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 Jun 19, 2020
Tested on Ubuntu 20.04 VM
View zfs-test.sh
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 Jun 12, 2020
SKOS transitive version of schema.org 8.0 class hierarchy - SPARQL executed on all-frames.nt from https://schema.org/docs/developers.html
View schema-skos-transitive.jsonld
{
"@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 Jun 12, 2020
SKOS version of schema.org 8.0 class hierarchy - SPARQL executed on all-frames.nt from https://schema.org/docs/developers.html
View schema-skos-flattened.jsonld
{
"@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": [
{
View do-not-transfer-2020-05-27.md

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 Mar 27, 2020
nanopub-server under single hostname https on Ubuntu 16.04
View docker-compose.override.yml
version: '2'
volumes:
mongodata:
rdfsink:
virtuosodb:
services:
server:
environment:
- NPS_PUBLIC_URL=https://openphacts.cs.man.ac.uk/nanopub/server/
ldf:
You can’t perform that action at this time.