Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
/* | |
* Added additional null checks when closing the ResultSet and Statements. | |
* | |
* Thanks to pihug12 and Grzegorz Oledzki at stackoverflow.com | |
* http://stackoverflow.com/questions/5332149/jdbc-scriptrunner-java-lang-nullpointerexception?tab=active#tab-top | |
*/ | |
/* | |
* Modified: Use logWriter in print(Object), JavaDoc comments, correct Typo. | |
*/ | |
/* |
#!/opt/perl | |
use Mojolicious::Lite; | |
use JSON; | |
get '/' => sub { | |
my $self = shift; | |
$self->render("index"); | |
}; |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
/** @jsx React.DOM */ | |
var LopMonHoc = React.createClass({ | |
getInitialState: function(){ | |
return {data: []} | |
}, | |
loadData: function(){ | |
$.ajax({ | |
url: '/daotao/lops', | |
success: function(data){ |
#!/bin/sh | |
# usage: push-gh-pages DIRECTORY # DIRECTORY is where GitHub pages contents are in (eg. build) | |
# LICENSE: Public Domain | |
set -e | |
remote=$(git config remote.origin.url) | |
described_rev=$(git rev-parse HEAD | git name-rev --stdin) |
#!/usr/bin/env python3 | |
"""Backs up data-only volumes to host backup directory using rdiff-backup. | |
First create a Docker image containing rdiff-backup (named rdiff-backup) | |
Dockerfile: | |
FROM ubuntu:precise | |
RUN apt-get update && apt-install -qy rdiff-backup | |
``docker build -rm -t rdiff-backup .`` |
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh
script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
MIT License | |
Copyright (c) <year> <copyright holders> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE S |
Follow the build instructions in https://github.com/google/cayley
Copy attached ntriple file to suitable location and run cayley with
./cayley http --dbpath=iand.ttl
Visit http://localhost:64210/
Cayley can read graph data expressed in NTriples triples. This example shows NTriples that are in full W3C form. Basically this means using URLs for identifying types and properties, and using RDF vocabularies for specific types and properties.
This shows an example of some RDF data being converted to NTriples (a line-oriented format), merged and loaded. The examples assume you have the Redland Raptor RDF/XML parser installed; or some other way to generate NTriples. The merged triples (timbl-foaf-merged.nt) are attached here for those without an RDF/XML parser installed.
Get some data (TimBL's FOAF contacts)
his main foaf file (doesn't describe contacts)