Skip to content

Instantly share code, notes, and snippets.

View pluraliseseverythings's full-sized avatar

Domenico Corapi pluraliseseverythings

View GitHub Profile
{
"settingsReloadIntervalMinutes": 1,
"fullscreen": false,
"autoStart": false,
"lazyLoadTabs": false,
"websites": [
{
"url": "https://prod-grafana.ops.babylontech.co.uk/d/i6p_g9VZz/user-graph-performance?orgId=1&from=now-7d&to=now",
"duration": 30,
"tabReloadIntervalSeconds": 60
#!/bin/bash
set -euo pipefail
function use() {
echo "prepare-release.sh [--major] [--minor]"
echo
echo "This script creates a release branch following git-flow principles."
echo
echo "It will create a new release branch from the current develop branch, increment the"
echo "VERSION file following semver, tag it with this version number."
@pluraliseseverythings
pluraliseseverythings / acurl.sh
Created March 28, 2018 15:45
Script for executing curl and authenticate for a Babylon service automatically
#!/bin/bash
# Try something like ./acurl.sh dev https://services-uk.dev.babylontech.co.uk/nabu-eventstore/health
env=$1
shift
curlargs=$@
[[ -z "${AUTH_EMAIL}" ]] && email='jane.doe@example.com' || email="${AUTH_EMAIL}"
[[ -z "${AUTH_PASSWORD}" ]] && password='1234_Hey_thats_the_code_on_my_luggage!' || password="${AUTH_PASSWORD}"
@pluraliseseverythings
pluraliseseverythings / grakn_to.lp
Last active July 6, 2017 10:51
Example of Grakn ontology and data represented as an ASP program with integrity constraints
% Constraints
:- isa(I, EType), has(I, A, _), not type_has(EType, A).
:- role(RelInstance, EInstance, Role), isa(RelInstance, RelType), not relates(RelType, Role).
:- role(RelInstance, EInstance, Role), isa(EInstance, EType), not plays(EType, Role).
% Person
entity(person)
plays(person, parent).
plays(person, child).
/*
* Grakn - A Distributed Semantic Database
* Copyright (C) 2016 Grakn Labs Limited
*
* Grakn is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Grakn is distributed in the hope that it will be useful,