Skip to content

Instantly share code, notes, and snippets.

View ikwattro's full-sized avatar

Christophe Willemsen ikwattro

View GitHub Profile
@ikwattro
ikwattro / Car Manufacturers.json
Created January 30, 2024 20:33 — forked from pcgeek86/Car Manufacturers.json
Plain-text list of major car manufacturers
[
"Abarth",
"Alfa Romeo",
"Aston Martin",
"Audi",
"Bentley",
"BMW",
"Bugatti",
"Cadillac",
"Chevrolet",
@ikwattro
ikwattro / README.md
Created March 23, 2022 16:16 — forked from michael-simons/README.md
Filtering contents of fileB.json with information from fileA.json
@ikwattro
ikwattro / schema-generator.py
Created February 24, 2021 20:34 — forked from FxIII/schema-generator.py
Hume Schema Generator
import os
from neo4j import GraphDatabase
import json
import random
import logging
import uuid
# default parameters
URI = "bolt://localhost:7687"
@ikwattro
ikwattro / App.java
Created April 13, 2020 13:33 — forked from thomasdarimont/App.java
Simple example for configuring Spring Security's RoleHierarchy via YAML in Spring Boot, compatible with Java 7
package demo;
import static java.util.Arrays.asList;
import static org.springframework.security.core.authority.AuthorityUtils.createAuthorityList;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@ikwattro
ikwattro / pizza.txt
Created February 3, 2018 21:31 — forked from edsu/pizza.txt
An example of looking up Pizza in Wikidata, to see the equivalent entities on other Wikipedias using the wggetentities call in the Wikidata API http://wikidata.org/w/api.php. The use of python as a filter on the end of curl is just to pretty print the JSON. You can obviously leave it off if you don't have Python available. In response to https:/…
curl "https://www.wikidata.org/w/api.php?action=wbgetentities&sites=itwiki&titles=Pizza&format=json" | python -mjson.tool
{
"entities": {
"q177": {
"descriptions": {
"de": {
"language": "de",
"value": "Gericht"
},
"en": {
@ikwattro
ikwattro / docker.sh
Created February 15, 2017 21:53 — forked from mneedham/docker.sh
function config {
mkdir -p /tmp/ce/$1/conf
cat > /tmp/ce/$1/conf/neo4j.conf << EOF
unsupported.dbms.edition=enterprise
dbms.mode=CORE
dbms.security.auth_enabled=false
dbms.memory.heap.initial_size=512m
dbms.memory.heap.max_size=512m
dbms.memory.pagecache.size=100M
@ikwattro
ikwattro / bin > drun
Created August 1, 2016 10:31 — forked from jakzal/bin > drun
Docker with Symfony, RabbitMQ, Nginx
#!/bin/bash
set -e
set -u
set -o pipefail
COMMAND=${1:-"help"}
MACHINE_NAME=myapp
DENV=${DENV:-"dev"}
@ikwattro
ikwattro / how-is-x-done.adoc
Created July 3, 2016 22:23 — forked from jexp/how-is-x-done.adoc
neo4j knowledge base template

How is X done

To display the nodes with the most properties defined, run the following Cypher Statement:

@ikwattro
ikwattro / Install-php7.md
Created June 13, 2016 22:22 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
@ikwattro
ikwattro / Dockerfile
Created May 13, 2016 08:51 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world