kill all existing sessions
tmux kill-server
As configured in my dotfiles.
start new:
kill all existing sessions
tmux kill-server
As configured in my dotfiles.
start new:
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
#printf | |
RUN printf '#!/bin/bash\n\ | |
echo hello world from line 1\n\ | |
echo hello world from line 2'\ | |
>> /tmp/hello | |
#echo | |
RUN echo -e '#!/bin/bash\n\ | |
echo hello world from line 1\n\ | |
echo hello world from line 2'\ |
""" | |
Jython script to connect to VIVO via SDB and export a model. | |
Requires Jython 2.5 or later. Download from: http://www.jython.org/downloads.html | |
Assumes the VIVO harvester is on your path. | |
- change the database connection information to point to your VIVO database. | |
- change the model name to specify the VIVO model you would like to export. | |
- change the output_file name to the location where you want to save the RDF. | |
- for larger models you will want to increase the memory available to Java. |
from SPARQLWrapper import SPARQLWrapper, JSON, DIGEST | |
sparql = SPARQLWrapper("http://example.org/sparql") | |
# For Virtuoso, use BASIC, not DIGEST | |
sparql.setHTTPAuth('BASIC') | |
sparql.setCredentials('login', 'password') | |
sparql.setQuery("...") | |
sparql.setReturnFormat(JSON) |
yago:Albert_Einstein yago:hasAcademicAdvisor yago:Alfred_Kleiner . |
<?php | |
class QueryDOMDocument extends \DOMDocument | |
{ | |
/** @var \DOMXPath */ | |
protected $xpath; | |
public function __construct() | |
{ | |
parent::__construct(); |
Professor ID | Title | Author | |
---|---|---|---|
P01 | The pushcart war | Jean Merrill | |
P02 | The definite guide to Drupal 7 | Benjamin Melançon et al. | |
P03 | The five love languages | Gary Chapman |
version: '3' | |
services: | |
mssql-server-linux: | |
image: microsoft/mssql-server-linux:latest | |
volumes: | |
- mssql-server-linux-data:/var/opt/mssql/data | |
environment: | |
- ACCEPT_EULA=Y | |
- SA_PASSWORD=${SQLSERVER_SA_PASSWORD:-yourStrong(!)Password} |