Skip to content

Instantly share code, notes, and snippets.

View carlosedp's full-sized avatar

Carlos Eduardo carlosedp

View GitHub Profile
@carlosedp
carlosedp / jmh-result.json
Last active November 19, 2024 14:20
Benchmark results for https://github.com/carlosedp/zio-channel/ at 2024-11-19T14:20:59
[
{
"jmhVersion" : "1.37",
"benchmark" : "zio.channel.benchmarks.Benchmarks.sendMessagesZioChannel",
"mode" : "avgt",
"threads" : 1,
"forks" : 1,
"jvm" : "/usr/lib/jvm/temurin-17-jdk-amd64/bin/java",
"jvmArgs" : [
],
@carlosedp
carlosedp / gtkwave.tcl
Last active November 9, 2024 19:56
GTKWave TCL script to colorize and group signals for Chisel projects
#
# GTKWave Grouping and colorizing script
#
# Load the trace with `gtkwave -S gtkwave.tcl yourtrace.vcd`
#
# Customize the inserted traces in the TOPlevel section below
# and at the bottom in the add_signals function calls
#
# Customize this section as needed
@carlosedp
carlosedp / minio-template.yaml
Last active October 16, 2024 14:48
Min.io OpenShift template
# To create a Minio deployment using Docker/Podman, use:
# mkdir -p ~/minio/data
#
# podman run \
# -p 9000:9000 \
# -p 9001:9001 \
# -v ~/minio/data:/data \
# -e "MINIO_ROOT_USER=root" \
# -e "MINIO_ROOT_PASSWORD=mysecret" \
# quay.io/minio/minio server /data --console-address ":9001"
@carlosedp
carlosedp / main.yml
Created January 28, 2019 19:02
Ansible playbook to automate new Kubernetes SBC nodes
---
- name: Setup SBC
hosts: all
#become: true
#become_user: root
gather_facts: false
vars:
#New user to be created
new_user: newuser
@carlosedp
carlosedp / nginx-auth.yaml
Last active August 5, 2024 23:16
NGINX Keycloak Authentication
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: nginx
@carlosedp
carlosedp / runme.py
Last active June 12, 2024 18:47
FuseSoc launcher wrapper for containerized commands
#!/usr/bin/python3
import os
import shutil
import subprocess
import sys
import logging
import shlex
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger("EdalizeLauncher")
@carlosedp
carlosedp / docker-compose.yml
Created January 19, 2018 14:35
docker-compose.yml - Traefik and Portainer
version: '2'
networks:
monitoring:
services:
traefik:
image: traefik:v1.5.0-rc5
restart: always
@carlosedp
carlosedp / httpserver.scala
Last active March 20, 2024 00:57
Scala ZIO-HTTP with logback and GraalVM native-image binary support
// Run with scala-cli httpserver.scala
// Save logback.xml file into ./resources dir
// Before generating native image binary, run first as above and make a real access to the URL
// so the native-image-agent can generate the metadata in ./resources dir.
// Then generate native image binary with: scala-cli package --native-image httpserver.scala
//> using scala "3.3.0"
//> using lib "dev.zio::zio:2.0.15"
//> using lib "dev.zio::zio-http:3.0.0-RC2"
//> using lib "dev.zio::zio-logging-slf4j2::2.1.13"
//> using lib "ch.qos.logback:logback-classic:1.4.8"
@carlosedp
carlosedp / readme.md
Created December 22, 2021 20:54
Generate certificates

Generate certificates and keys with SAN

# Generate rootCA key and certificate
openssl genrsa -out rootCA.key 4096
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.crt

# Generate certificate key
openssl genrsa -out mydomain.com.key 2048
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index c512a9e..e9d6f58 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -221,7 +221,7 @@ superdom.c
#endif /* LCD_DEPTH > 1 */
-
+test_disk.c