Skip to content

Instantly share code, notes, and snippets.

View Aracki's full-sized avatar
🇷🇸

Ivan Aracki Aracki

🇷🇸
View GitHub Profile
@Aracki
Aracki / main.go
Created February 20, 2018 15:17
Concurrent program go - 1
func main() {
ch := make(chan int)
out := make(chan int)
go func(ch1 chan int, out chan int) {
res := 0
for v := range ch1 {
fmt.Println("Receive: ", v)
res += v

Keybase proof

I hereby claim:

  • I am aracki on github.
  • I am raca (https://keybase.io/raca) on keybase.
  • I have a public key ASCiiMuIYE6DRJ4NF_B_TRlUUW5ULOI_Mndn1_OY-58K3go

To claim this, I am signing this object:

@Aracki
Aracki / kubectl.fish
Created September 11, 2018 14:38
Fish auto completion for kubectl commands
# kubernetes - is an open source system for managing containerized
# applications across multiple hosts, providing basic mechanisms for
# deployment, maintenance, and scaling of applications.
# See: https://kubernetes.io
function __kubectl_no_command
set -l cmd (commandline -poc)
if not set -q cmd[2]
return 0
end
@Aracki
Aracki / com.googlecode.iterm2.plist
Created September 19, 2018 09:52
Iterm configuration file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
<key>AppleSmoothFixedFontsSizeThreshold</key>
<integer>1</integer>
@Aracki
Aracki / Dockerfile
Created October 2, 2018 09:22
Countgo - Dockerfile with multi-stage build used to deploy GoLang app
FROM golang:1.10.3-alpine as builder
WORKDIR $GOPATH/src/github.com/aracki/countgo
COPY . .
ENV GOBIN $GOPATH/bin
RUN GOOS=linux GOARCH=386 go install cmd/aracki/main.go
FROM scratch as appgo
COPY --from=builder /go/bin/main /go/bin/main
COPY mongo_config.yml mongo_config.yml
ENTRYPOINT ["/go/bin/main"]
@Aracki
Aracki / .gitconfig
Created October 8, 2018 07:05
Git config file with useful aliases
[alias]
plom = pull origin master
br = branch -av
s = status
d = diff
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
ll = log --stat --abbrev-commit
[user]
name = Aracki
email = [email protected]
@Aracki
Aracki / .gitconfig
Created October 8, 2018 07:05
Git config file with useful aliases
[alias]
plom = pull origin master
br = branch -av
s = status
d = diff
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
ll = log --stat --abbrev-commit
[user]
name = Aracki
email = [email protected]

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

@Aracki
Aracki / default
Last active January 25, 2019 10:25
Simple Nginx config. TLS enabled with LetsEncrypt. Redirection HTTP to HTTPs.
server {
server_name www.aracki.me aracki.me;
return 301 https://aracki.me$request_uri;
}
server {
ssl_certificate /etc/letsencrypt/live/aracki.me/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/aracki.me/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
@Aracki
Aracki / Dockerfile
Created December 18, 2018 16:07
Dockerfile for IBM-MQ-Spring
FROM ibmcom/ibmjava:8-sdk
#---------------Default argument values--------------------
ARG TRUST_STORE_TYPE=pkcs12
ARG TRUST_STORE=/mnt/mqm/MQClient/certs/client_key.p12
ARG TRUST_STORE_PWD=tru5tpassw0rd
ARG KEY_STORE=/mnt/mqm/MQServer/certs/QM1.cert
ARG KEY_STORE_PWD=keypassw0rd
ARG CONN_NAME