Skip to content

Instantly share code, notes, and snippets.

View nevali's full-sized avatar
🏳️‍🌈
Always, always busy

Mo McRoberts nevali

🏳️‍🌈
Always, always busy
View GitHub Profile
@nevali
nevali / 01-realm-config.ldif.in
Last active July 15, 2022 11:14
Selected extracts from my scripts to prototype/operate an OpenLDAP server container
### config/01-realm-config.ldif.in
## ------------------------------------------------------------------------- ##
## Realm database configuration
## ------------------------------------------------------------------------- ##
dn: olcBackend=mdb,cn=config
objectClass: olcBackendConfig
olcBackend: mdb
@nevali
nevali / dcms-what-we-will-do.md
Last active March 23, 2016 16:57
What We Will Do

What we will do

This is the list of government actions taken from The Culture White Paper.

The White Paper is released under the terms of the Open Government Licence, Version 3.0 and is Crown Copyright.

1.1 Culture should be an essential part of every child’s education, both in and out of school

  • We will establish a new cultural citizens programme, with the support of Lottery distributors, to create new cultural opportunities for thousands of young people from disadvantaged backgrounds.
  • We will work with the RSA to encourage schools to use the pupil premium to promote cultural education as a means of raising the educational attainment of disadvantaged pupils.
[lod:licenses]
predicate="http://purl.org/dc/terms/rights"
predicate="http://purl.org/dc/terms/license"
predicate="http://purl.org/dc/terms/accessRights"
predicate="http://creativecommons.org/ns#license"
predicate="http://www.w3.org/1999/xhtml/vocab#license"
predicate="http://www.w3.org/1999/xhtml/vocab#copyright"
whitelist="http://creativecommons.org/publicdomain/zero/1.0/"
whitelist="http://id.loc.gov/about/"
whitelist="http://creativecommons.org/licenses/by/4.0/"

Keybase proof

I hereby claim:

  • I am nevali on github.
  • I am nevali (https://keybase.io/nevali) on keybase.
  • I have a public key whose fingerprint is 0AD2 8B2D 2196 76C7 3BE6 32F7 E751 1334 CEBC F03E

To claim this, I am signing this object:

@nevali
nevali / gist:10786827
Created April 15, 2014 23:04
liblod, part 3: an agent can now opt to follow foaf:primaryTopic; and redirects are dealt with much more sensibly—the redirect URL (if status was not a 303) is pushed into a FIFO list of subjects, and subject matching will be attempted in each in turn. in other words, redirects work as you would expect.
$ ./lod-util
./lod-util: a test harness for liblod
Enter a URI to resolve, or .COMMAND (type '.help' for a list of commands)
> .follow
will follow foaf:primaryTopic
> http://bbc.co.uk/spooks
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@nevali
nevali / gist:10753613
Created April 15, 2014 18:03
liblod continued: now follows redirects properly; parses HTML to find <link rel="alternate"> elements linking to supported RDF serialisations; the test harness now has the ability to quickly locate and dump the primary topic of the most recently-received document (assuming the document is itself described in the RDF returned); and cURL calls are…
$ ./lod-util
./lod-util: a test harness for liblod
Enter a URI to resolve, or .COMMAND (type '.help' for a list of commands)
> .help
Available commands:
.help Print this message
.quit or .exit End lod-util session
.reset Discard the current context
@nevali
nevali / gist:10685573
Created April 14, 2014 21:57
Prototyping liblod
### This is a transcript of lod-util, a test harness for `liblod`, which I sat and wrote this
### evening: in effect, it wraps up libcurl and librdf in order to provide a sensible context-based
### approach to consuming Linked Data. It has one core API call: lod_resolve(), which is passed a
### a context, a LOD URI string and a fetch mode parameter. The fetch mode is 'always',
### 'only if absent', or 'never'. Each time a URI is resolved, the triples that are parsed are
### added to the context's model.
###
### The fetch mode for lod-util is 'only if absent', which means that if there are already triples
### about the subject in the model, a new request won't be made. You can see below that after parsing
### Henry Story's FOAF file, information is already known about Dan Brickley. Executing the command
/* PeopleView hacks */
html#ctl00_htmlMaster>body.orgchart td.listingTableOptions>table {
width: 100%;
outline: solid red 1px;
}
html#ctl00_htmlMaster>body.orgchart td.scrollingTD {
width: auto !important;
}
Domain Name: TWITTER.COM
Registrar: MELBOURNE IT, LTD. D/B/A INTERNET NAMES WORLDWIDE
Whois Server: whois.melbourneit.com
Referral URL: http://www.melbourneit.com
Name Server: NS1.P34.DYNECT.NET
Name Server: NS2.P34.DYNECT.NET
Name Server: NS3.P34.DYNECT.NET
Name Server: NS4.P34.DYNECT.NET
Status: clientTransferProhibited
Status: serverDeleteProhibited
struct baz
{
pthread_mutex_t mutex;
pthread_t thread;
int statekeeping;
};
int
foo(void)
{