Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊
not a fox

Jakob Voß nichtich

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

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
nichtich / README.md
Last active January 19, 2023 19:19
Ubuntu at Lenovo ThinkPad P14s
View README.md

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
nichtich / viaflookup.pl
Created February 17, 2011 16:32
Make use of VIAF authority records
View viaflookup.pl
#!/usr/bin/perl
=head1 NAME
viaflookup.pl - How to make use of VIAF authority records
=head1 VERSION
Version 0.2 - 2011-02-18
@nichtich
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
<html>
<head>
<script type="text/javascript" src="./jquery-1.4.3.min.js"></script>
<script type="text/javascript">
var baseURL = 'http://en.wiktionary.org';
function showPage(page,text) {
var sourceurl = baseURL + '/wiki/' + page;
$('#pagetitle').text(page);
$('#wikiInfo').html(text);
$('#sourceurl').attr('href',sourceurl);
@nichtich
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 https://gist.github.com/gists/1438869
# hereby put into public domain
BEGIN {
FS = "|"
link = "http://www.w3.org/2000/01/rdf-schema#seeAlso"
header = 1
}
{
if (header && $1 ~ /^(\xef\xbb\xbf)?[ \t]*#/) { # may contain UTF-8 BOM!
@nichtich
nichtich / setup.md
Created January 23, 2017 13:09
Getting started with Fuseki
View setup.md

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
nichtich / jupyter-hosting.md
Last active September 7, 2022 19:10
Jupyter notebook hosting
View jupyter-hosting.md
@nichtich
nichtich / README.md
Last active August 18, 2022 08:10
Abfrage von Proceedings-Daten aus dem K10plus
View README.md

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
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 http://www.apache.org/dyn/closer.cgi/lucene/solr/ 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
nichtich / comparison.md
Last active March 3, 2022 10:29
JSON query languages
View comparison.md

JSON query languages

  • JSONPath is was created 2007, inspired by XPath. A formal standard is being created at https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base
  • 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