Skip to content

Instantly share code, notes, and snippets.


Olivier Eeckhoutte oeeckhoutte

View GitHub Profile
oeeckhoutte / settings.json
Created May 11, 2021
VScode basic config for Python virtualenv with flake8 and black (.vscode/ dir)
View settings.json
"python.pythonPath": "venv/bin/python",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.formatting.provider": "black",
"editor.rulers": [
"python.linting.pylintEnabled": false,
"editor.codeLens": true,
  • Change Default response timeout for a specific route:
oc annotate route <route_name> --overwrite
  • Add a nodeSelector on RC ou DC
oc patch dc|rc <dc_name> -p "spec:                                                                                         
oeeckhoutte /
Created May 1, 2018 — forked from kuchibs/
Use Ansible to install Openshift Origin (oc) single node cluster on number of machines!

Install OpenShift Origin on one node (CENTOS) - commands:

1) Install docker

yum install docker -y 
systemctl start docker


echo "INSECURE_REGISTRY='--insecure-registry'" >> /etc/sysconfig/docker
systemctl enable docker
oeeckhoutte /
Last active Jan 12, 2018
Install Helm and Minikube on Ubuntu 16.04 on Azure
# Install virtualbox
sudo apt-get install virtualbox
# Install kubectl
curl -LO$(curl -s && chmod +x kubectl && sudo mv kubectl /usr/local/bin
# Install minikube
curl -Lo minikube && chmod +x minikube && sudo mv minikube /usr/local/bin/
# Launch Minikube
oeeckhoutte / flash-app.js
Created Dec 19, 2017 — forked from brianmacarthur/flash-app.js
Flash messaging in Express 4: express-flash vs. custom middleware in ejs, handlebars, or jade
View flash-app.js
var express = require('express');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var flash = require('express-flash');
var handlebars = require('express-handlebars')
var app = express();
var sessionStore = new session.MemoryStore;
// View Engines
oeeckhoutte /
Created Dec 2, 2017 — forked from ernsheong/
Implementing OAuth2 Resource Owner Password Credentials Grant with Kong

Implementing OAuth2 Resource Owner Password Credentials Grant with Kong

The documentation is okay, but it has some holes, and I had to read it many many times and play with the API myself to "get it" in terms of implementation. So here is a guide that I hope will help someone along the way.

DISCLAIMER: This is by no means the canonical or the most secure way to do this. Below are my findings upon my reading of the docs and the spec. But I might be wrong, very wrong.

This gist is meant to complement the documentation in

The Resource Owner Password Credentials Grant makes sense if we want to authenticate users who are using our trusted 1st party applications of our own service. (However, you might not want to trust your JavaScript SPA with your refresh token, and maybe you need to store that refresh token in the server on behalf of the SPA if you are paranoid about security. Disclaimer: I am not a security expert)

oeeckhoutte /
Created Jul 17, 2017 — forked from leonardofed/
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed

View a Super-simple Nginx reverse proxy with Homebrew on OS



brew install nginx
sudo cp /usr/local/Cellar/nginx/1.8.0/homebrew.mxcl.nginx.plist /Library/LaunchAgents


Replace /usr/local/etc/nginx/nginx.conf with the nginx.conf in this gist. I'm using port 5000 for my current project. Obviously, change server_name as well, and probably the name of its access log.

  1. Install CUDA
  2. Install Tensorflow
  3. Reinstall Drivers Then, create ln
$ cd /usr/local/cuda/lib
$ ln -s libcuda.dylib libcuda.1.dylib

On ~/.bash_profile

View gist:5a0a67e6b1e93bba7d85508bd6a1b898
var expect = require('expect.js'),
Browser = require('zombie'),
browser = new Browser();
describe('Loads pages', function(){
it('', function(done){
browser.visit("", function () {