This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package itforarchivists | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"github.com/richardlehane/siegfried/pkg/core" | |
"github.com/richardlehane/siegfried/pkg/pronom" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
declare -A maps | |
maps=( | |
["osm-emr"]="http://geodati.fmach.it/gfoss_geodata/osm/output_img/emilia-romagna.tar.gz" | |
["osm-vdo"]="http://geodati.fmach.it/gfoss_geodata/osm/output_img/valle-aosta.tar.gz" | |
["osm-piemonte"]="http://geodati.fmach.it/gfoss_geodata/osm/output_img/piemonte.tar.gz" | |
["osm-trentino"]="http://geodati.fmach.it/gfoss_geodata/osm/output_img/trentino-alto-adige.tar.gz" | |
["osm-basilicata"]="http://geodati.fmach.it/gfoss_geodata/osm/output_img/basilicata.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
. heritrix.conf | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo usage: $0 jobname seedsfile | |
exit | |
fi | |
JOB=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import grp | |
import mimetypes | |
from optparse import OptionParser | |
import os | |
from pprint import pprint | |
import pwd | |
from stat import * | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// The gChart PHP library is required in order to make this work. You can download it from http://code.google.com/p/gchartphp/ | |
// Make sure you put it in the same directory as this script | |
ini_set('display_errors','1'); | |
$server_address = 'http://142.132.138.20:8983'; | |
require ('gChart.php'); | |
if ( isset($_GET['query'])) { | |
$query = 'mimetype:' . strtolower($_GET['query']) . '*'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using Fuzzy Hashing to Create New Relationships Between Digital Archives | |
Fuzzy hases enable us to spot digital content that shares a high percentage of similar byte sequences. | |
There may be similarities between two word documents for example, but the items may not be the same, i.e. | |
a single byte-change will render comparision using cryptographic-hash useless. | |
A fuzzy hash offers the ability to spot similar items, n.b. not identical, thus enabling us to infer | |
relationshops between material - a capability we have very few options for at present. | |
Committing a fuzzy hash of an object to a digital repository can enable comparison at any point in time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"github.com/PuerkitoBio/goquery" | |
"github.com/zmb3/spotify" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Service] | |
# change user for worker processes | |
CapabilityBoundingSet=CAP_SETUID CAP_SETGID | |
# bind to ports 143 and 993 | |
CapabilityBoundingSet=CAP_NET_BIND_SERVICE | |
# fchown() /var/run/dovecot/login | |
CapabilityBoundingSet=CAP_CHOWN | |
# bind to /var/spool/postfix/private/dovecot{-auth} | |
CapabilityBoundingSet=CAP_DAC_OVERRIDE | |
# chroot to /var/run/dovecot/empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
curl "https://www.esteri.it/mae/it/ministero/laretediplomatica/rete-diplomatica-mappa.html?tipo=0" | | |
pup 'div[id="map"] + script text{}' | sed -r 's/..$//g;s/initMap\(//g' | jq . | in2csv -I -f json | | |
tee 01_ambasciate.csv | csvgrep -i -c "lat" -r "^$" | csvjson -I --lat lat --lon lng | | |
jq . >02_ambasciate.geojson | |
curl "https://www.esteri.it/mae/it/ministero/laretediplomatica/rete-diplomatica-mappa.html?tipo=1" | |
OlderNewer