Skip to content

Instantly share code, notes, and snippets.

View zednis's full-sized avatar

Stephan Zednik zednis

View GitHub Profile
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Cloning VM...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/ubuntu-18.04' version '201812.27.0' is up to date...
==> default: Setting the name of the VM: aperture-dev
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
@zednis
zednis / 0_reuse_code.js
Created June 1, 2017 17:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zednis
zednis / ProvTest.ipynb
Created May 24, 2016 20:04
iPython PROV Test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zednis
zednis / docker-compose.yml
Last active May 10, 2016 22:37
data.rpi.edu docker config
dspace:
image: tomcat:7-jre7
hostname: dspace
domainname: data.rpi.edu
ports:
- "127.0.0.1:8880:8080"
links:
- db
environment:
- DB_PORT=tcp://db:5432
@zednis
zednis / MediaType-rdf.py
Created April 13, 2016 20:43
RDF generation script for IANA Media Types
import csv
from rdflib import Graph, Literal, URIRef, Namespace, RDF, RDFS
base_uri = "http://www.iana.org/assignments/media-types/"
DCT = Namespace("http://purl.org/dc/terms/")
DCTYPE = Namespace("http://purl.org/dc/dcmitype/")
DCAM = Namespace("http://purl.org/dc/dcam/")
g = Graph()
@zednis
zednis / CountryServiceTest.java
Created June 29, 2015 18:53
TestCase for Jena Spring-powered CountryService class
package edu.rpi.tw.dco.usermgmt.service;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.ResourceFactory;
import com.hp.hpl.jena.vocabulary.RDF;
import com.hp.hpl.jena.vocabulary.RDFS;
import edu.rpi.tw.dco.usermgmt.DcoUserManagementApplication;
import edu.rpi.tw.dco.usermgmt.model.mongo.Country;
import org.junit.Test;