Skip to content

Instantly share code, notes, and snippets.

View rbento's full-sized avatar

Rodrigo Bento rbento

  • Toronto
View GitHub Profile

Alertmanager

Running on Docker

alias alertmanager="docker run --rm --name alertmanager -v /Users/rbento/Conf/alertmanager.yml:/etc/alertmanager/alertmanager.yml -p 9093:9093 -d prom/alertmanager:latest"

Configuring

Macbook Pro M1

Generate a Windows 11 installer USB on a Macbook Pro M1

  1. List all drives to find the USB drive
diskutil list

Podman

Many machines can be created but only one can be active at one time.

# Options

# --cpus=4
# --memory=8192 
# --disk-size=128
@rbento
rbento / my-useful-snippets.md
Last active October 1, 2022 02:51
Some useful commands and code snippets

Bash

# Programs
alias redis="docker run --rm --name redis -p 6379:6379 -v /Users/username/Data/redis.txt:/data/data.txt -d redis:latest"
alias jaeger="docker run --rm --name jaeger -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14250:14250 -p 14268:14268 -p 14269:14269 -p 9411:9411 -d jaegertracing/all-in-one:latest"
alias prometheus="docker run --rm --name prometheus -p 9494:9090 -v /Users/username/Conf/prometheus.yml:/etc/prometheus/prometheus.yml -d prom/prometheus"
alias grafana="docker run --rm --name grafana -p 3000:3000 -d grafana/grafana"
@rbento
rbento / notes-on-reactive-streams.md
Last active September 4, 2023 20:10
My notes on Reactive Streams

Vulkan

Devices


Physical Device
  • The GPU itself.
  • Holds memory and processing pipeline queues.
    • Memory
@rbento
rbento / notes-on-the-jvm.md
Last active April 21, 2022 01:30
Notes on the Java Virtual Machine

JVM

JVM related options and more.

Debugging Compiled Code


# Disable JIT Compiler
-Xint

Linux

Add a user to sudo group

sudo usermod -aG sudo username

groups username