Skip to content

Instantly share code, notes, and snippets.

View michimau's full-sized avatar

Mauro Michielon michimau

  • European Food Safety Authority
  • Parma
View GitHub Profile
5/8/2019 12:15:07 PM PREFIX a: <http://www.eea.europa.eu/portal_types/Data#>
5/8/2019 12:15:07 PMPREFIX dt: <http://www.eea.europa.eu/portal_types/DataTable#>
5/8/2019 12:15:07 PMPREFIX org: <http://www.eea.europa.eu/portal_types/Organisation#>
5/8/2019 12:15:07 PMPREFIX dct: <http://purl.org/dc/terms/>
5/8/2019 12:15:07 PMPREFIX ecodp: <http://open-data.europa.eu/ontologies/ec-odp#>
5/8/2019 12:15:07 PMPREFIX dcat: <http://www.w3.org/ns/dcat#>
5/8/2019 12:15:07 PMPREFIX owl: <http://www.w3.org/2002/07/owl#>
5/8/2019 12:15:07 PMPREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5/8/2019 12:15:07 PMPREFIX datafilelink: <http://www.eea.europa.eu/portal_types/DataFileLi
5/8/2019 12:15:07 PM PREFIX a: <http://www.eea.europa.eu/portal_types/Data#>
5/8/2019 2:15:20 PM*** Error in `/usr/bin/virtuoso-t': malloc(): memory corruption: 0x00007fa76c60bc90 ***
5/8/2019 2:15:20 PM======= Backtrace: =========
5/8/2019 2:15:20 PM/lib64/libc.so.6(+0x72435)[0x7fa807776435]
5/8/2019 2:15:20 PM/lib64/libc.so.6(+0x7cf6e)[0x7fa807780f6e]
5/8/2019 2:15:20 PM/lib64/libc.so.6(__libc_malloc+0x59)[0x7fa807782ab9]
5/8/2019 2:15:20 PM/usr/bin/virtuoso-t[0x7b799f]
5/8/2019 2:15:20 PM/usr/bin/virtuoso-t[0x7a2b2d]
5/8/2019 2:15:20 PM/usr/bin/virtuoso-t[0x7a3111]
5/8/2019 2:15:20 PM/usr/bin/virtuoso-t[0x7a3bb3]
5/8/2019 2:15:20 PM/usr/bin/virtuoso-t[0x53b62e]
[2019-05-16 11:29:21.583] - INFO --- rg.springframework.test.context.support.DefaultTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@19539731, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@d67714, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5dea8ad6, org.springframework.test.context.support.DirtiesContextTestExecutionListener@230e0fbd, org.springframework.test.context.transaction.TransactionalTestExecutionListener@2661fef2, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@153c53fd] - (DefaultTestContextBootstrapper.java:187)
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 s - in eionet.cr.harvest.UnauthorizedHarvestIT
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] GeneralConfigTest.testGetIntPropertyCorrect » IllegalState Failed to load Appl...
[ERROR] GeneralConfigTest.testGetIntPropertyNotExisti
CREATE MATERIALIZED VIEW clrtap_nec_unfccc.running_total_and_target (
year,
country_code,
pollutant_name,
sector_code,
emissions,
target,
running_total)
AS
SELECT source.year,
SELECT
source.year,
source.country_code,
source.pollutant_name,
source.sector_code,
source.emissions
FROM
clrtap_nec_unfccc.clrtap_nfr09_gf source,
(
@michimau
michimau / .env
Created July 12, 2019 20:10 — forked from bschulz87/.env
Pydio Cells Docker Compose
PYDIO_URL=my.pydio.cells
MYSQL_ROOT_PASSWORD=rootPassword
MYSQL_DATABASE=pydio
MYSQL_USER=cells
MYSQL_PASSWORD=password
<VirtualHost *:80>
ServerAdmin mypydio.com
AllowEncodedSlashes On
RewriteEngine On
ProxyPassMatch "/ws/(.*)" ws://cells:8080/ws/$1 nocanon
ProxyPass / http://cells:8080/ nocanon
ProxyPassReverse / http://cells:8080/ nocanon
version: '2'
services:
cells:
image: pydio/cells:latest
restart: always
volumes:
- data:/root/.config/pydio/cells/data
ports:
@michimau
michimau / seafile light blue
Created July 16, 2019 06:30
seafile light blue
/**
* depends on bootstrap
*
* html { box-sizing: border-box; }
* body { background: #fff; }
* p { margin-top:0; margin-bottom:1rem; }
*
**/
/**
@michimau
michimau / xpath for F
Created July 23, 2019 14:28
xpath for F
with ns as (
select ARRAY[ARRAY['xlink', 'http://www.w3.org/1999/xlink'], ARRAY['gmd', 'http://www.isotc211.org/2005/gmd'], ARRAY['gco', 'http://www.isotc211.org/2005/gco']] as n
)
SELECT uuid, changedate,
unnest(xpath('//gmd:identifier[*]/gmd:MD_Identifier[*]/gmd:code[*]/gco:CharacterString[1]/text()', XMLPARSE(DOCUMENT data), n)) as dataset_id,
changedate as datestamp,
unnest(xpath('//gmd:referenceSystemIdentifier[*]', XMLPARSE(DOCUMENT data), n)) as crs,
unnest(xpath('//gmd:citation[*]/gmd:CI_Citation[*]/gmd:title[*]/gco:CharacterString[1]/text()', XMLPARSE(DOCUMENT data), n)) as title,