Skip to content

Instantly share code, notes, and snippets.

View JulienBreux's full-sized avatar

Julien Breux JulienBreux

View GitHub Profile
@JulienBreux
JulienBreux / README.md
Last active July 16, 2024 12:51
🎈 Balloon pod

Balloon pod

Machine

  • Family t2d-standard-1 (🔗 Tau T2D machine types)
  • vCPU 1
  • Memory 4 GB
  • Maximum egress bandwidth (Gbps) 10

Useful commands

@JulienBreux
JulienBreux / main_test.go
Last active April 24, 2024 15:11
TestContainers - Forward test
package tcgot
import (
"context"
"errors"
"fmt"
"io"
"log"
"net/http"
"strings"
@JulienBreux
JulienBreux / _etc_nginx_sites-enabled_default
Last active June 28, 2023 15:58
Istio Minimal Config To External HTTPS
server {
# listen 80 default_server;
# listen [::]:80 default_server;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
include snippets/self-signed.conf;
root /var/www/html;
@JulienBreux
JulienBreux / tracing-jaeger-ok.overlay.yaml
Last active February 7, 2022 11:44
Istio tracing Jaeger for ASM example
---
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
meshConfig:
enableTracing: true
defaultConfig:
tracing:
sampling: 100
values:
@JulienBreux
JulienBreux / CKA.md
Last active July 1, 2021 11:59
CKA-07-2021 - Certification Kubernetes Administrator

JSON Path

Get restart count from container name

$.status.containerStatuses[?(@.name == 'xxx-container')].restartCount

Print node addresses

$.items[*].status.addresses[?(@.type=="InternalIP")].address
@JulienBreux
JulienBreux / go1.16-golang.md
Created February 20, 2021 11:04
How to get Go (golang) 1.16 without wasting time

How to get Go (golang) 1.16 without wasting time

go get golang.org/dl/go1.16
go1.16 download

go1.16 version

@JulienBreux
JulienBreux / read-access.sql
Last active February 18, 2020 17:24 — forked from oinopion/read-access.sql
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT CONNECT ON DATABASE _database_name_ TO readaccess;
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO readaccess;
-- Grant access to future tables
minikube_initialized=$(minikube profile list -o json | jq 'select(.valid != null) | .valid | map(select(.Name == "minikube")) | length')
@JulienBreux
JulienBreux / circle-tag.sh
Created December 12, 2019 16:00
CircleCI Tag
TAG=$(echo ${CIRCLE_SHA1} | cut -c1-7)
if [ ! -z "${CIRCLE_TAG}" ]; then
TAG="${CIRCLE_TAG}"
fi
@JulienBreux
JulienBreux / Dockerfile
Created August 19, 2019 15:37
Speed Nginx Docker (for tests)
FROM nginx:1-alpine
COPY ./src/index.html /usr/share/nginx/html
COPY ./etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf