Skip to content

Instantly share code, notes, and snippets.

Niclas Hoyer niclashoyer

  • Kiel, Germany
Block or report user

Report or block niclashoyer

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
niclashoyer / colour-light.vim
Last active Aug 29, 2015
light colorscheme for vim
View colour-light.vim
" Vim color file colour light
" generated by VimTax
set background=light
hi clear
if exists("syntax_on")
syntax reset
set t_Co=256
let colors_name = "colour-light"
niclashoyer /
Last active Aug 29, 2015
Simple docker backup
set -e
set -u
CONTAINER=$(docker ps -a --no-trunc | awk 'NR>1' | awk 'BEGIN {FS=" +"}; $5 ~ "^Up" {print $1}')
for C in $CONTAINER; do
echo "Backup for $C"
DATA=$(docker inspect $C)
# get volumes for a container
docker inspect $container | jq '.[].Volumes|to_entries[].key'
curl -s | sed -n -e 's/.*\(http:\/\/.*akamaihd.*\.m3u8\).*/\1/p'
niclashoyer /
Created Sep 22, 2014 GitHub verification

Keybase proof

I hereby claim:

  • I am niclashoyer on github.
  • I am niclashoyer ( on keybase.
  • I have a public key whose fingerprint is 7693 6404 9CAC 6CED BC02 C3E4 EDCE 346C 637C 3F49

To claim this, I am signing this object:

niclashoyer /
Last active Aug 29, 2015
Generating ioregs! macros from SVD files
from cmsis_svd.parser import SVDParser
def getaccess(field):
if field.access == 'read-only':
return ': ro'
if field.access == 'write-only':
return ': wo'
return ''
def getoffset(field):
niclashoyer /
Created Apr 26, 2012 — forked from njh/
Shell script to create a WebID certificate using OpenSSL
# WebID Self-signed Certificate Generator
# This is free and unencumbered software released into the public domain.
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
niclashoyer / githubtags.php
Created Jun 15, 2012
Get Tags of a GitHub Repository with links to Tarballs
View githubtags.php
#!/usr/bin/env php
$user = 'symfony';
$repo = 'symfony';
$url = ''.$user.'/'.$repo.'/tags';
$json = file_get_contents($url);
niclashoyer /
Created Jun 16, 2012
Display gzipped SQL dumps from folder
cd $dir
for file in *.$ending; do
time=$(date -d @`stat $file -c %Y` +%T)
size=$(du -sh $file | awk '{print $1}')
niclashoyer / classprop.sparql
Created Jun 22, 2012
SPARQL Query for Retrieving Classes with Properties
View classprop.sparql
PREFIX dc:<>
PREFIX rdfs:<>
PREFIX time:<>
PREFIX geo:<>
PREFIX foaf:<>
PREFIX event:<>
PREFIX owl:<>
PREFIX rdf:<>
PREFIX vs:<>
select distinct ?class ?property ?label
You can’t perform that action at this time.