Skip to content

Instantly share code, notes, and snippets.

View Aracki's full-sized avatar
🇷🇸

Ivan Aracki Aracki

🇷🇸
View GitHub Profile
@Aracki
Aracki / fantom-testnet-example.yaml
Last active May 30, 2022 21:49
Used for AWS/GCP testing
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
labels:
app: fantom-testnet-node
name: fantom-testnet-node
namespace: blockchain
spec:
selector:
@Aracki
Aracki / __kube_prompt.fish
Created June 22, 2019 23:08
my own __kube_prompt.fish
# Inspired from:
# https://github.com/jonmosco/kube-ps1
# https://github.com/Ladicle/fish-kubectl-prompt
set -g color_ctx (set_color $KUBE_PROMPT_COLOR_CTX)
set -g color_ns (set_color $KUBE_PROMPT_COLOR_NS)
set -g color_staging (set_color blue)
set -g color_production (set_color red)
@Aracki
Aracki / postupak.txt
Last active May 9, 2019 10:32
Elektronski sertifikat - lična karta
POSTUPAK INSTALACIJE SOFTVERA ZA KORIŠĆENJE ELEKTRONSKOG SERTIFIKATA ZA DIGITALNO POTPISIVANJE POMOĆU LIČNE KARTE SA ČIPOM IZDATE POSLE 18.08.2014. GODINE
KORAK 1. Instalacija aplikacije ČELIK+, koja omogućava iščitavanje javnih podataka sa čipa lične karte kao i iščitavanje sertifikata za autentikaciju i šifrovanje, iščitavanje sertifikata za digitalno potpisivanje. Pomoću ove aplikacije građanin može da proveri da li je u čip lične karte upisan elektronski sertifikat za digitalni potpis.
ČELIK+ aplikacija
ČELIK+ aplikaciju možete preuzeti sa http://ca.mup.gov.rs/download.html
uputstvo za instalaciju ČELIK+ aplikacije se nalazi na http://ca.mup.gov.rs/dokumentacija.html
uputstvo za korišćenje ČELIK+ aplikacije se nalazi u okviru same aplikacije u meniju Pomoć
NAPOMENA: Ako posle instalacije aplikacije Čelik+, aplikacija neće da se startuje potrebno je instalirati Microsoft Visual C++ 2008 SP1 Redistributable Package i možete ga preuzeti sa http://www.microsoft.com/en-us/download/details.aspx?id=26368 ili h
@Aracki
Aracki / latency.markdown
Created March 26, 2019 18:04 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@Aracki
Aracki / notebook1.txt
Last active January 17, 2019 15:30
Jupyter testing
library(imager)
#file <- system.file('/home/jovyan/work/img/tree.jpg',package='imager')
#system.file gives the full path for a file that ships with a R package
#if you already have the full path to the file you want to load just run:
im <- load.image("/home/jovyan/work/tree.jpg")
#im <- load.image(file)
im.blurry <- isoblur(im,1) #Blurry parrots!
plot(im.blurry)
@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
@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

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 / .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 = aracki.ivan@gmail.com
@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 = aracki.ivan@gmail.com