Skip to content

Instantly share code, notes, and snippets.

View imrel's full-sized avatar

ImreL imrel

View GitHub Profile
@imrel
imrel / README-Template.md
Created September 30, 2018 23:48 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from Feb

@imrel
imrel / README.md
Last active March 21, 2017 08:11 — forked from ralphschindler/README.md
Docker (For Mac) Aasa's De-facto Host Address Alias (192.168.99.1) - "The 10254 Trick".

This is based on script for using IP 10.254.254.254 alias from here: https://gist.github.com/ralphschindler/535dc5916ccbd06f53c1b0ee5a868c93

Docker (Mac) De-facto Standard Host Address Alias

This launchd script will ensure that your Docker environment on your Mac will have 192.168.99.1 as an alias on your loopback device (127.0.0.1). The command being run is ifconfig lo0 alias 192.168.99.1 255.255.255.0

Installation

Copy/Paste the following in terminal with sudo (must be root as the target directory is owned by root)...

@imrel
imrel / helloevolve.py
Created November 11, 2016 21:47
helloevolve.py - a simple genetic algorithm in Python
"""
helloevolve.py implements a genetic algorithm that starts with a base
population of randomly generated strings, iterates over a certain number of
generations while implementing 'natural selection', and prints out the most fit
string.
The parameters of the simulation can be changed by modifying one of the many
global variables. To change the "most fit" string, modify OPTIMAL. POP_SIZE
controls the size of each generation, and GENERATIONS is the amount of
generations that the simulation will loop through before returning the fittest