Skip to content

Instantly share code, notes, and snippets.

View nichtich's full-sized avatar
🦊
not a fox

Jakob Voß nichtich

🦊
not a fox
View GitHub Profile
@nichtich
nichtich / linkcheck
Created February 3, 2014 20:33
simple linkchecker script
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "please provide an URL to check links at!" >&2
exit 1
fi
URL=$1
wget --spider -H -r -l1 $URL 2>&1 \
@nichtich
nichtich / overview
Created May 19, 2014 10:07
VISO Data Ontology overview
# https://github.com/viso-ontology/viso-ontology/blob/master/modules/data/viso-data.ttl
vd:Data
vd:Physical_Data / viso-data:Raw_Data / vd:Metadata
vd:Spatial_Data
vd:Geographical_Data
vd:Temporal_Data
vd:One-Dimensional_Data
vd:Data_Object
@nichtich
nichtich / Blendwirkung.md
Created January 26, 2015 19:38
LED-Lampe

zu http://fastvoice.net/2010/06/20/kase-trennblatter-als-led-streuscheiben

Das ist eine Klasse Idee, ich hab ähnliches mal mit Butterbrotpapier versucht, das ist auch was für Veganer und andere Käse-Gegner ;-). Wesentlich für die Minderung der Blendwirkung ist der Abstand zwischen LED und dem Papier. Da Papier im Gegensatz zu den im Handel erhältlichen Abdeckungen für LED-Aluprofile aus Pastik nicht so stabil ist, sollte es ggf. mehrlagig genommen werden. Es gibt auch weitere Papierarten und Varianten, die in Frage kommen (Wachs/Ölpapier, Transparentpapier, Glassin..), hier ist etwas Experimentieren gefragt. Ich frage mich wie Papier im Gegensatz zu Plastik bezüglich Lichtdurchlässigkeit bei gleichzeitig genügender Streuung abschneidet.

catmandu convert MWTemplates --site en --page Feminism --template Cite_book to XLS --file list.xls
...Excel-Liste manuell bearbeiten...
catmandu convert XLS --file liste.xls --fix 'move_field(TEMPLATE,_type);trim(_type)' to BibTeX
@nichtich
nichtich / k2-to-daia.md
Created May 18, 2015 11:08
K2 Availability Server als DAIA-Server

Der K2 Availability Server des KOBV Portal 2.0 liefert aktuelle Verfügbarkeitsinformationen zu Publikationen in Bibliotheken des KOBV. Die Informationen werden aus den einzelnen Ausleihsystemen der Bibliotheken per DAIA oder auf anderem Wege ermittelt und zusammengeführt. Die Schnittstelle lässt sich folgendermaßen nutzen, um wieder DAIA-Konforme DAIA für eine Bibliothek zu bekommen. Sinnvoller ist allerdings direkt auf einen DAIA-Server zuzugreifen.

Die id ist die interne ID des jeweiligen Titeldatensatz im Bibliothekskatalog z.B. BV024100711.

Die JSON-Antwort besteht aus einem Array mit (bei einer Bibliothek) einem Objekt, hier ein Beispiele:

http://avail.kobv.de/k2?ids=DE-188;BV024100711

<?php
/**
* This script reuses the RELAX NG Compact schema files that can be found at
* http://bitbucket.org/bdarcus/csl-schema
*/
// load types and variables from RNC schema
$csl_types = array();
foreach( file('csl-types.rnc') as $line ) {
@nichtich
nichtich / debain-perl-notes.md
Last active September 16, 2015 13:02
Perl to Debian package

Adding an existing package

For instance

$ git clone -b debian ssh://git.debian.org/git/pkg-perl/packages/$PACKAGE.git
$ git push origin debian

To build the debian package

$ milla build

#!/usr/bin/perl
use strict;
use warnings;
=head1 NAME
Code4LibBib - extract Code4lib Journal Bibliography
=head1 DESCRIPTION