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
niclashoyer / sample gitignore for netbeans projects
Created Apr 12, 2011
gitignore for netbeans project that ignores generic configuration files that are generated by netbeans
View sample gitignore for netbeans projects
#ant specific
dist/
build/
#netbeans specific
core
nbproject/*
!nbproject/project.properties
!nbproject/project.xml
@niclashoyer
niclashoyer / gen-webid-cert.sh
Created Apr 26, 2012 — forked from njh/_README.md
Shell script to create a WebID certificate using OpenSSL
View gen-webid-cert.sh
#!/bin/sh
#
# gen-webid-cert.sh: 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
niclashoyer / githubtags.php
Created Jun 15, 2012
Get Tags of a GitHub Repository with links to Tarballs
View githubtags.php
#!/usr/bin/env php
<?php
$user = 'symfony';
$repo = 'symfony';
$url = 'https://api.github.com/repos/'.$user.'/'.$repo.'/tags';
$json = file_get_contents($url);
@niclashoyer
niclashoyer / lsdumps.sh
Created Jun 16, 2012
Display gzipped SQL dumps from folder
View lsdumps.sh
#!/bin/bash
dir=/path/to/dumps
ending=sql.bz2
cd $dir
for file in *.$ending; do
time=$(date -d @`stat $file -c %Y` +%T)
size=$(du -sh $file | awk '{print $1}')
name=${file%%.$ending}
@niclashoyer
niclashoyer / config.php
Created Jun 16, 2012
Get Magento Configurations as XML
View config.php
<?php
/*
Put this file to /magento/shell/config.php and run
$ php shell/config.php | tidy -xml -i > config.xml
*/
require_once 'abstract.php';
@niclashoyer
niclashoyer / classprop.sparql
Created Jun 22, 2012
SPARQL Query for Retrieving Classes with Properties
View classprop.sparql
PREFIX dc:<http://purl.org/dc/elements/1.1/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX time:<http://www.w3.org/2006/time#>
PREFIX geo:<http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX foaf:<http://xmlns.com/foaf/0.1/>
PREFIX event:<http://purl.org/NET/c4dm/event.owl#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX vs:<http://www.w3.org/2003/06/sw-vocab-status/ns#>
select distinct ?class ?property ?label
@niclashoyer
niclashoyer / createevent.sparql
Created Jun 28, 2012
Example SPARQL Queries for Events
View createevent.sparql
PREFIX time:<http://www.w3.org/2006/time#>
PREFIX geo:<http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX foaf:<http://xmlns.com/foaf/0.1/>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX event:<http://purl.org/NET/c4dm/event.owl#>
INSERT DATA {
_:ev a event:Event ;
event:time _:time .
_:time a time:Interval ;
@niclashoyer
niclashoyer / policies.sparql
Created Aug 7, 2012
SPARQL Query for SHI3LD Access Policy Selection
View policies.sparql
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX s4ac: <http://ns.inria.fr/s4ac/v2#>
SELECT DISTINCT
?m ?p ?title ?protected ?privilege ?acs ?type ?query
WHERE {{
BIND('1' AS ?m)
?p a s4ac:AccessPolicy ;
s4ac:appliesTo ?protected .
OPTIONAL {
View dabblet.css
/*
* Responsive Test
*/
/* reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/* stuff */
html { padding-top: 4em; counter-reset: item }
* { box-sizing: border-box }
View dabblet.css
/*
* Responsive Test
*/
/* reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/* stuff */
html { padding-top: 4em; counter-reset: item }
* { box-sizing: border-box }
You can’t perform that action at this time.