Skip to content

Instantly share code, notes, and snippets.

View ikwattro's full-sized avatar

Christophe Willemsen ikwattro

View GitHub Profile
@ikwattro
ikwattro / _info.md
Created September 9, 2016 20:06
Custom POS Tagger in Python

Using a custom tagger for python nltk.

Problem: most of examples are buggy, need to stick to nltk 3.0.1 :

pip install nltk==3.0.1
@ikwattro
ikwattro / writer.service
Created September 3, 2016 00:03
Systemd service example
[Unit]
Description=Job that runs the synchro daemon
#Documentation=man:foo(1)
[Service]
Type=forking
WorkingDirectory=/home/ubuntu/app/gitbeat-sync
User=ubuntu
ExecStart=/usr/bin/php writer.php
Restart=on-failure
@ikwattro
ikwattro / index.html
Created September 2, 2016 14:26
guide test
<article class="guide">
<carousel class="deck container-fluid">
<slide class="row-fluid">
<div class="col-sm-3">
<h3>Title one</h3>
<p class="lead">First lead</p>
</div>
<div class="col-sm-9">
<p>This is the content in the main column.</p>
<ol class="big">
@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
@ikwattro
ikwattro / bulk-neo4j-import-original.sh
Created May 11, 2016 23:55 — forked from jexp/bulk-neo4j-import-original.sh
Panama Papers Import Scripts for Neo4j and Docker
export NEO4J_HOME=${NEO4J_HOME-~/Downloads/neo4j-community-3.0.1}
if [ ! -f data-csv.zip ]; then
curl -OL https://cloudfront-files-1.publicintegrity.org/offshoreleaks/data-csv.zip
fi
export DATA=${PWD}/import
rm -rf $DATA
@ikwattro
ikwattro / index.html
Created April 17, 2016 00:48 — forked from jexp/_run.sh
Rendering large graphs with vivagraph.js, neo4j-javscript-driver (binary-bolt), meetup dataset and compiled runtime. Oh the joy :)
<!--
bower install neo4j-driver
bower isntall vivagraphjs
python -m SimpleHTTPServer 8002
open http://localhost:8002
-->
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Neo4j NGraph Test</title>
@ikwattro
ikwattro / crayola.json
Created April 16, 2016 12:49 — forked from jjdelc/crayola.json
Crayola colors in JSON format
[
{
"hex": "#EFDECD",
"name": "Almond",
"rgb": "(239, 222, 205)"
},
{
"hex": "#CD9575",
"name": "Antique Brass",
"rgb": "(205, 149, 117)"