Skip to content

Instantly share code, notes, and snippets.

not a fox

Jakob Voß nichtich

not a fox
View GitHub Profile
nichtich /
Last active January 30, 2023 17:23 — forked from oodavid/
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
nichtich /
Last active January 19, 2023 19:19
Ubuntu at Lenovo ThinkPad P14s

Install and setup Ubuntu at a new Lenovo ThinkPad P14s Gen 3 with NVIDIA T550.

Lenovo is certified for Ubuntu

Lenovo provides a short document how to install Ubuntu 20.04

  • Enter BIOS and disable secure boot, to boot from USB Stick
  • Install Ubuntu, with "Install third-party software" enabled to include NVIDIA drivers

Update firmware

nichtich /
Created February 17, 2011 16:32
Make use of VIAF authority records
=head1 NAME - How to make use of VIAF authority records
=head1 VERSION
Version 0.2 - 2011-02-18
nichtich / wiktionarylookup.html
Created November 12, 2010 19:10
Look up a word in Wiktionary via MediaWiki API and show the Wiktionary page
View wiktionarylookup.html
<script type="text/javascript" src="./jquery-1.4.3.min.js"></script>
<script type="text/javascript">
var baseURL = '';
function showPage(page,text) {
var sourceurl = baseURL + '/wiki/' + page;
nichtich / beacon2nt.awk
Created December 6, 2011 16:38
Simple awk scripts to convert between BEACON format and N-Triples
View beacon2nt.awk
# Simple awk script to convert BEACON format to N-Triples
# First published at
# hereby put into public domain
FS = "|"
link = ""
header = 1
if (header && $1 ~ /^(\xef\xbb\xbf)?[ \t]*#/) { # may contain UTF-8 BOM!
nichtich /
Created January 23, 2017 13:09
Getting started with Fuseki

Tested with a fresh Ubuntu 16.04.1 LTS

Install Java

$ sudo apt-get install default-jre

Download and install Fuseki with a dedicated user account

nichtich /
Last active September 7, 2022 19:10
Jupyter notebook hosting
nichtich /
Last active August 18, 2022 08:10
Abfrage von Proceedings-Daten aus dem K10plus

Abfrage von Proceedings-Daten aus dem K10plus

Schritt 1: Finden des Normdatensatz der Proceedings-Reihe z.B. PPN 669696374 für CEUR-WS.

Die Verknüpften Publikationen sind im OPAC unter related publications aufrufbar.

Schritt 2: SRU-Abfrage der verknüpften Publikationen

Wie in der K10plus-SRU-Dokumentation beschrieben setzt sich die entsprechende CQL-Query aus drei Teilen zusammen:

nichtich / README.txt
Created June 8, 2010 11:50
Simple PDF file indexing with Solr
View README.txt
This gist contains two files for simple indexing of PDF files.
== requirements ==
First you need to install Solr (which requires a Java JDK): Download a tar or zipfile at and unpack it to a directory of your choice. Go into this directory and start solr running in jetty by:
$ cd example
$ java -jar start.jar
Then locate your browser to http://localhost:8983/solr/
nichtich /
Last active March 3, 2022 10:29
JSON query languages

JSON query languages

  • JSONPath is was created 2007, inspired by XPath. A formal standard is being created at
  • SQL/JSON path was created inspired by JSONPath and other query languages.
  • jq is a programming language with strong support of JSON transformation
  • JSON Pointer only references a single element

Most important conflicting difference between JSONPath and SQL/JSON path is $.["name"] vs $."name" and $[? filter ] vs $?(filter).

Other JSON query languages