Skip to content

Instantly share code, notes, and snippets.

View echofool's full-sized avatar

echofool

  • Hangzhou
View GitHub Profile
@echofool
echofool / hex.js
Created June 17, 2021 13:07 — forked from valentinkostadinov/hex.js
JavaScript HEX encoding
function toHex(s) {
// utf8 to latin1
var s = unescape(encodeURIComponent(s))
var h = ''
for (var i = 0; i < s.length; i++) {
h += s.charCodeAt(i).toString(16)
}
return h
}
@echofool
echofool / Extensions.cs
Created October 18, 2019 02:40
POCO to DataTable
public static class Extensions
{
public static DataTable ToDataTable<T>(this IEnumerable<T> source)
{
if (source == null)
{
throw new ArgumentNullException(nameof(source));
}
var table = Cache<T>.SchemeFactory();
@echofool
echofool / SupportAsyncInterceptor.cs
Last active April 12, 2019 04:17
support intercept async/sync methods
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Threading.Tasks;
using Castle.DynamicProxy;
/// <summary>
/// support intercept async/sync methods

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

How to setup gitlab without embedded nginx

Install via omnibus-package

install the normal way:

wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null

sudo apt-get update
sudo apt-get upgrade