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
# alle Dateien, deren Name auf _B endet … | |
find . -name "*_B" -print0 | xargs -0 ./reduce.py > processed.csv | |
# erster Versuch mit Pipes | |
cat 20181011_06-04-51_B \ | |
| awk 'NR == 1 || NR == 2 || NR % 100 == 0' \ | |
| sed -e 's/ \+/ /g' \ | |
| cut -d ' ' -f 1-10 \ |
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 sh | |
curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=init&service=vlib" | grep init | sed -e 's/.*<session>//' | sed -e 's/<\/session>.*//' > /tmp/sessionID ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=search&query=gaga&session=`cat /tmp/sessionID`" ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=show&session=`cat /tmp/sessionID`" ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=show&session=`cat /tmp/sessionID`" ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=show&session=`cat /tmp/sessionID`" ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=show&session=`cat /tmp/sessionID`" ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=show&session=`cat /tmp/sessionID`" ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=show&session=`cat /tmp/sessionID`" ; curl "http://vlib.sub.uni-goettingen.de/pazpar2/search.pz2?command=show&session=`cat /tmp/se |
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/sh | |
# Convert Windows EMF to usable graphics files with a crazy chain of tools. | |
# 2012 Sven-S. Porst, SUB Göttingen <porst@sub.uni-goettingen.de> | |
# Configuration | |
BASEPATH=/Users/ssp/SUB/edfu/emf | |
WINE=wine | |
METAFILE2EPS=$BASEPATH/metafile2eps-linux/metafile2eps.exe | |
PS2PDF=ps2pdf | |
INKSCAPE=/Applications/Graphik/Inkscape.app/Contents/Resources/bin/inkscape |
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 net.earthlingsoft.uritest; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.util.Arrays; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; |
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 sh | |
# | |
# Script to clone gitx from github and build it using | |
# the scripts provided by the project. | |
# | |
# Sven-S. Porst @ssp <ssp-web@earthlingsoft.net> | |
# | |
git clone https://github.com/ssp/gitx.git | |
cd gitx |
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
input { | |
stdin { | |
type => "stdin-type" | |
} | |
file { | |
type => "apache" | |
path => ["/var/log/apache2/access_log", "/var/log/apache2/error_log", "/var/log/apache2/ssl_request_log"] | |
} | |
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
SELECT ?color ?label (lang(?label) AS ?language) ?rgb WHERE { | |
?color wdt:P31/wdt:P279* wd:Q1075. # instance or subclass of »colour« | |
?color wdt:P465 ?rgb. # store sRGB value in ?rgb | |
?color rdfs:label ?label. # store label in ?label | |
FILTER (lang(?label)="de" || lang(?label) = "en" || lang(?label) = "fr" || lang(?label) = "tr") | |
} | |
ORDER BY ASC(?rgb) | |
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 sh | |
ps aux | cut -b 16-22 | sed -e "s/\s*//" | grep -v PID | sort -n | xargs -n 1 -IA sh -c "codesign --verify --deep A" |
This file has been truncated, but you can view the full file.
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
Z> find Hilbert | |
Received SRW SearchRetrieve Response | |
Number of hits: 8414 | |
Elapsed: 0.021573 | |
Z> schema dc | |
Z> s 1 | |
Received SRW SearchRetrieve Response | |
Number of hits: 8414 | |
pos=1 schema=dc | |
<record xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:srw_dc="info:srw/schema/1/dc-schema"> |