Skip to content

Instantly share code, notes, and snippets.

Olivier Eeckhoutte oeeckhoutte

Block or report user

Report or block oeeckhoutte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oeeckhoutte
oeeckhoutte / gist:7ab4468cf19a20069d49b5a6a4d39a9a
Created Jul 17, 2018
Install virtualenv on ubuntu using Python3
View gist:7ab4468cf19a20069d49b5a6a4d39a9a
# Install Python 3
$ apt-get install python3
$ python3 -V
Output
python 3.5.2
# Install pip for python 3
$ apt-get install -y python3-pip
$ pip3 -V
Output
View openshift-cheatsheet.md
  • Change Default response timeout for a specific route:
oc annotate route <route_name> --overwrite haproxy.router.openshift.io/timeout=10s
  • Add a nodeSelector on RC ou DC
oc patch dc|rc <dc_name> -p "spec:                                                                                         
  template:     
@oeeckhoutte
oeeckhoutte / OpenshiftOrigin.md
Created May 1, 2018 — forked from kuchibs/OpenshiftOrigin.md
Use Ansible to install Openshift Origin (oc) single node cluster on number of machines!
View OpenshiftOrigin.md

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

1) Install docker

yum install docker -y 
systemctl start docker

Note:

echo "INSECURE_REGISTRY='--insecure-registry 172.30.0.0/16'" >> /etc/sysconfig/docker
systemctl enable docker
@oeeckhoutte
oeeckhoutte / install_minikube.sh
Last active Jan 12, 2018
Install Helm and Minikube on Ubuntu 16.04 on Azure
View install_minikube.sh
# Install virtualbox
sudo apt-get install virtualbox
# Install kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin
# Install minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
# Launch Minikube
@oeeckhoutte
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
oeeckhoutte / ropc_kong.md
Created Dec 2, 2017 — forked from ernsheong/ropc_kong.md
Implementing OAuth2 Resource Owner Password Credentials Grant with Kong
View ropc_kong.md

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 https://getkong.org/plugins/oauth2-authentication/.

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
oeeckhoutte / README.md
Created Jul 17, 2017 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications
View README.md


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 X.md

Installation

1)

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

2)

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.

View install_tensor_flow_osx.md
  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('Google.com', function(done){
browser.visit("http://www.google.com", function () {
console.log(browser.text("title"));
You can’t perform that action at this time.