Skip to content

Instantly share code, notes, and snippets.

View terraform_error.txt
2021-04-20T12:50:07.616+0200
[INFO] provider.terraform-provider-aws_v3.37.0_x5: 2021/04/20 12:50:07
[DEBUG] [aws-sdk-go] {"PermissionSetProvisioningStatus":{"CreatedDate":1.618915777954E9,"FailureReason":"Received a 403 status error: User: arn:aws:iam::xxx:user/ivan.xxx.com is not authorized to perform: sso:ProvisionPermissionSet on resource: arn:aws:sso:::instance/ssoins-xxx with an explicit deny","PermissionSetArn":"arn:aws:sso:::permissionSet/ssoins-xxx/ps-xyz","RequestId":"6b6d6a8a-3557-4c71-94fa-04d5c91807aa","Status":"FAILED"}}: timestamp=2021-04-20T12:50:07.615+0200
│ Error: error waiting for SSO Permission Set (arn:aws:sso:::permissionSet/ssoins-xxx/ps-xyz) to provision: unexpected state 'FAILED', wanted target 'SUCCEEDED'. last error: %!s(<nil>)
@Aracki
Aracki / __kube_prompt.fish
Created Jun 22, 2019
my own __kube_prompt.fish
View __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
Elektronski sertifikat - lična karta
View postupak.txt
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 Mar 26, 2019 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know
View latency.markdown

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 / config.fish
Created Mar 20, 2019
Fish main config file
View config.fish
export GOROOT=/usr/local/go
export GOPATH=/Users/Raca/go
export GOBIN=$GOPATH/bin
. ~/.servers
. ~/.aliases
[ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish
@Aracki
Aracki / notebook1.txt
Last active Jan 17, 2019
Jupyter testing
View notebook1.txt
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 Dec 18, 2018
Dockerfile for IBM-MQ-Spring
View Dockerfile
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 Jan 25, 2019
Simple Nginx config. TLS enabled with LetsEncrypt. Redirection HTTP to HTTPs.
View default
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
View _MicroService Proxy Gateway Solutions.md

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 Oct 8, 2018
Git config file with useful aliases
View .gitconfig
[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