Skip to content

Instantly share code, notes, and snippets.

View AlexanderWillner's full-sized avatar
😷
👍

Alex AlexanderWillner

😷
👍
View GitHub Profile
@AlexanderWillner
AlexanderWillner / com.c
Last active August 27, 2015 17:30 — forked from bjoern-r/com.c
very simple serial terminal
/*
* Building: cc -o com com.c
* Usage : ./com /dev/device [speed]
* Example : ./com /dev/ttyS0 [115200]
* Keys : Ctrl-A - exit, Ctrl-X - display control lines status
* Darcs : darcs get http://tinyserial.sf.net/
* Homepage: http://tinyserial.sourceforge.net
* Version : 2007-07-31
*
* Ivan Tikhonov, http://www.brokestream.com, kefeer@brokestream.com
@prefix : <http://testbeds.eu/ontology#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix nml: <http://schemas.ogf.org/nml/base/2013/02#> .
@prefix omn: <http://open-multinet.info/ontology#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
$ ./reasoning-example.sh
Default RDF dataset (extract):
==============================
<http://intercloud.example.org#knows> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#SymmetricProperty> .
<http://intercloud.example.org#alice> <http://intercloud.example.org#knows> <http://intercloud.example.org#bob> .
Query on default RDF dataset:
=============================
Command: sparql --query=reasoning-example.sparql --data=reasoning-example.ttl
$ java -jar jFed-experimenter-GUI.jar
[Fatal Error] :6:8: XML document structures must start and end within the same entity.
12:14:55.156 [JavaFX Application Thread] ERROR b.i.i.j.e.ui.code.XmlCodeView - Error while trying to format XML
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) ~[jFed-experimenter-GUI.jar:5.0.1-SNAPSHOT]
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) ~[jFed-experimenter-GUI.jar:5.0.1-SNAPSHOT]
at be.iminds.ilabt.jfed.experimenter_gui.ui.code.XmlCodeView.formatXmlCode(XmlCodeView.java:119) [jFed-experimenter-GUI.jar:5.0.1-SNAPSHOT]
at be.iminds.ilabt.jfed.experimenter_gui.ui.code.XmlCodeView.formatXmlCode(XmlCodeView.java:185) [jFed-experimenter-GUI.jar:5.0.1-SNAPSHOT]
at be.iminds.ilabt.jfed.experimenter_gui.editor.ribbon_tabs.RspecEditorRibbonTab.onFormatCodeAction(RspecEditorRibbonTab.java:65) [jFed-experimenter-GUI.jar:5.0.1-SNAPSHOT]
This file has been truncated, but you can view the full file.
Sampling process 382 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Quicksilver (pid 382) every 1 millisecond
Process: Quicksilver [382]
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver
Load Address: 0x108c1f000
Identifier: com.blacktree.Quicksilver
Version: 1.2.2 (4011)
Code Type: X86-64
Parent Process: ??? [1]
Date/Time: 2015-02-10 09:26:11 +0100
OS Version: 10.10.3 (Build 14D72i)
Architecture: x86_64
Report Version: 21
Command: Quicksilver
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver
Version: 1.2.2 (4011)
Parent: launchd [1]
PID: 382
private void setupJfed(final GeniUrn cfgUrnUser, final String authorityURN,
final String cfgPwd, final String cfgPem) throws IOException,
JFedException {
final char[] pemPass = cfgPwd.toCharArray();
final File pemFile = new File(PerformanceTest.class.getResource(cfgPem)
.getFile());
final String pemPath = PerformanceTest.class.getResource(cfgPem)
.getPath();
this.user = new SimpleGeniUser(null, cfgUrnUser,
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GnuTLS configure 2.12.5, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --disable-guile --disable-static --prefix=/usr/local/Cellar/gnutls/2.12.5 --with-libgcrypt
## --------- ##
## Platform. ##
@AlexanderWillner
AlexanderWillner / buildGPGTools.sh
Created September 24, 2012 21:41
Create your own GPGTools Installer
bash -c "$(curl -fsSkL raw.github.com/GPGTools/GPGTools/master/build.sh)"
bash -c "$(curl -fsSkL raw.github.com/tubav/fiteagle/master/src/main/bin/bootstrap.sh)"