Skip to content

Instantly share code, notes, and snippets.

{
"@context": {
"dct": "http://purl.org/dc/terms/",
"eac-cpf": "http://archivi.ibc.regione.emilia-romagna.it/ontology/eac-cpf/",
"foaf": "http://xmlns.com/foaf/0.1/",
"nfo": "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/",
"ore": "http://www.openarchives.org/ore/0.9/jsonld",
"premis": "http://www.loc.gov/premis/rdf/v1",
"sdo": "http://schema.org/",
"srnsw": "http://srnswda.example",
CREATE PROCEDURE [dbo].[getResults]
@tableid smallint,
@query varchar(256)
AS
SET NOCOUNT ON
DECLARE @t_id smallint
DECLARE @name varchar(100)
DECLARE @hidden varchar(100)
DECLARE @sSQL varchar(1000)
DECLARE @strSurname varchar(512)
https://www.facebook.com/mikebairdMP/videos/1318653904929514/
https://www.facebook.com/mikebairdMP/videos/1284900084971563/
https://www.facebook.com/mikebairdMP/videos/1250818055046433/
https://www.facebook.com/mikebairdMP/videos/1247075428754029/
https://www.facebook.com/mikebairdMP/videos/1182686331859606/
https://www.facebook.com/mikebairdMP/videos/1129202177208022/
https://www.facebook.com/mikebairdMP/videos/1125975284197378/
https://www.facebook.com/mikebairdMP/videos/1124804800981093/
https://www.facebook.com/mikebairdMP/videos/1123035184491388/
https://www.facebook.com/mikebairdMP/videos/1118181918310048/
[
{
"id": "1322504821211089_1322509094543995",
"created_time": "2017-01-22T23:39:34+0000",
"from": {
"id": "10154110788742563",
"name": "Cinzia Della Corte"
},
"message": "Thank you Mike Baird for everything. All the best to you and your family.",
"comments": [
https://scontent.xx.fbcdn.net/v/t1.0-9/16473861_1331223243672580_3007363330168360217_n.jpg?oh=cd1262c0a6f6c47924cfc9fb04deedc4&oe=5969FB7D
https://scontent.xx.fbcdn.net/v/t31.0-8/16300242_1331221857006052_6101553113289312731_o.jpg?oh=f4c366ac0b45de605b7e556cc7d42d97&oe=594ED382
https://scontent.xx.fbcdn.net/v/t1.0-9/16174697_1322504821211089_3388130383708913956_n.jpg?oh=0d6b146d8260742b13da73dc0a860a7e&oe=596B6696
https://scontent.xx.fbcdn.net/v/t31.0-8/16143844_1319021801559391_1393710172709706700_o.jpg?oh=6f92747d0f11fcb27fcf12d0e57fbdab&oe=5952BCBE
https://scontent.xx.fbcdn.net/v/t1.0-9/15965128_1308346382626933_2423410593828143732_n.jpg?oh=a844d921ac81453e5553bb1da6e5862c&oe=59571B3D
https://scontent.xx.fbcdn.net/v/t1.0-9/15747748_1301113983350173_2648964543649987526_n.jpg?oh=ea2a2575a3374bbab68f4c31c894b2fd&oe=5998ECC0
https://scontent.xx.fbcdn.net/v/t1.0-9/15622307_1295388000589438_2862535887186151727_n.jpg?oh=1b147cbe520af071670a07bcda6df0f3&oe=59980D96
https://scontent.xx.fbcdn.net/v/t1.0-9/15241138_1
@richardlehane
richardlehane / steffen.go
Created June 11, 2017 01:01
Getting MIME from results
/*
Sorry Steffen, documentation of the siegfried package needs a lot of attention!
Also, I've pretty much just focussed on sf tool's needs without making the package very ergonomic/ easy to use in other contexts.
The reason there is no method to directly access a MIME type is that I've tried to make Identifications as abstract as possible.
I.e. even though the three supported Identifiers (PRONOM, LOC and MIMEInfo) all have a MIME field, it may in future be desirable
to add another Identifier type that doesn't have this information (though I admit that is unlikely!).
The interfaces for Identifier (a set of signatures) and Identification (a result returned by an Identifier) are both defined in
the pkg/core package: http://godoc.org/github.com/richardlehane/siegfried/pkg/core
upstream atom {
server unix:/run/php7.0-fpm.atom.sock;
}
server {
listen 80;
root /usr/share/nginx/atom;
# http://wiki.nginx.org/HttpCoreModule#server_name
[atom]
; The user running the application
user = www-data
group = www-data
; Use UNIX sockets if Nginx and PHP-FPM are running in the same machine
listen = /run/php7.0-fpm.atom.sock
listen.owner = www-data
listen.group = www-data
@richardlehane
richardlehane / import.csv
Created June 13, 2017 11:21
ASA directory of Australian archives
We can't make this file beautiful and searchable because it's too large.
identifier,uploadLimit,authorizedFormOfName,contactPerson,streetAddress,telephone,email,fax,website,geoculturalContext,internalStructures,collectingPolicies,holdings,findingAids,openingTimes,accessConditions,disabledAccess,researchServices,reproductionServices,publicFacilities,maintenanceNote,descInstitutionIdentifier,descRevisionHistory,descSources,culture
archives/22,0,Abbotsleigh,Archivist,"1666 Pacific Highway, Wahroonga 2076
Postal address:
Locked Bag 1666, Wahroonga 2076",(02) 9473-7777,gleavesj@abbotsleigh.nsw.edu.au,(02) 9473-7680,http://www.abbotsleigh.nsw.edu.au/,,Officer in charge: Archivist,"Continuing acquisition of material relating to the School, its current and ex students and staff; with some material relating to the local areas of Wahroonga, Ku-Ring-Gai.","Secretary's Office: Student records 1913- (10m). Council: Minutes 1924 (3m).
Quantity: 50m (100% in-house).",,"Abbotsleigh Archives is open Monday to Thursday 8am-4pm throughout the year, including school holidays. General reference assi
// parse FcCompressed (section 2.9.73)
func parseFcCompressed(fcData []byte) *fcCompressed {
fCompressed := fcData[3]&64 == 64 // check fcompressed value (second bit from lestmost of the last byte in fcdata)
fcData[3] = fcData[3] & 63 // clear the fcompressed value from data
fc := binary.LittleEndian.Uint32(fcData) // word doc generally uses little endian order (1.3.7)
return &fcCompressed{fc: int(fc), fCompressed: fCompressed}
}