Skip to content

Instantly share code, notes, and snippets.

Sven-S. Porst ssp

Block or report user

Report or block ssp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View commands.sh
# 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 \
@ssp
ssp / ParseURIs.java
Last active Nov 18, 2016
Dauert das Parsen von URIs lange?
View ParseURIs.java
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;
@ssp
ssp / clone-and-build-gitx.sh
Last active Nov 1, 2016
Script to clone and build gitx
View clone-and-build-gitx.sh
#!/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
@ssp
ssp / Wikidata.sparql
Last active May 26, 2016
Colours from Wikidata/dbpedia
View Wikidata.sparql
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)
@ssp
ssp / check-codesign-running.sh
Last active Apr 19, 2016
One-liner to check all running processes on Mac OS X with codesign.
View check-codesign-running.sh
#!/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"
View Unicode Person
👒
👀
🐽
👅
👕
👖
@ssp
ssp / iterate-dom.js
Last active Aug 29, 2015
Iterates the DOM and logs tag names, classes and id to the console
View iterate-dom.js
iterate = function (e, level) {
var message = '';
e.children().each( function() {
var logString = '';
for (var i = 0; i < level; i++) { logString += '>'; }
logString += this.nodeName + ' ';
if (this.id) { logString+= '#' + this.id + ' '; }
if (typeof this.className === 'string') { logString += '.' + this.className.split(' ').join(' .'); }
message += logString + "\n";
message += iterate($(this), level + 1);
View keybase.md

Keybase proof

I hereby claim:

  • I am ssp on github.
  • I am ssp (https://keybase.io/ssp) on keybase.
  • I have a public key whose fingerprint is 73B2 8281 F366 912E 7DF8 D918 93D7 2D60 0085 ABA3

To claim this, I am signing this object:

@ssp
ssp / 10.7
Last active Aug 29, 2015
building yaz on Mac OS X
View 10.7
# building on 10.7 from Index Data’s git repository
# Result: yaz builds with ICU
@ssp
ssp / zvdd-sru.text
Created Dec 16, 2013
Example for the output formats of the ZVDD SRU interface
View zvdd-sru.text
This file has been truncated, but you can view the full file.
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
You can’t perform that action at this time.