Skip to content

Instantly share code, notes, and snippets.

View ruivieira's full-sized avatar
💭
I'm drinking tea

Rui Vieira ruivieira

💭
I'm drinking tea
View GitHub Profile
@ruivieira
ruivieira / 01-dsc.yaml
Last active October 18, 2024 00:35
KServe Inference Logging Testing
apiVersion: datasciencecluster.opendatahub.io/v1
kind: DataScienceCluster
metadata:
name: default-dsc
finalizers:
- datasciencecluster.opendatahub.io/finalizer
labels:
app.kubernetes.io/created-by: opendatahub-operator
app.kubernetes.io/instance: default
app.kubernetes.io/managed-by: Helm
@ruivieira
ruivieira / 01-dsc.yaml
Last active October 17, 2024 13:09
MariaDB / TrustyAI service with TLS
apiVersion: datasciencecluster.opendatahub.io/v1
kind: DataScienceCluster
metadata:
name: default-dsc
labels:
app.kubernetes.io/created-by: opendatahub-operator
app.kubernetes.io/instance: default
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: datasciencecluster
app.kubernetes.io/part-of: opendatahub-operator
@ruivieira
ruivieira / milestone.py
Created July 18, 2023 07:36
Closed issues from GitHub milestone to Markdown
import requests
import json
import os
# GitHub API URL
url = 'https://api.github.com/repos/{owner}/{repo}/issues'
# Replace these with the appropriate values
owner = 'trustyai-explainability'
repo = 'trustyai-explainability'
DEBU CRC version: 2.2.2+f1e1d3e
DEBU OpenShift version: 4.10.9
DEBU Podman version: 3.4.4
DEBU Running 'crc start'
DEBU Total memory of system is 67413745664 bytes
DEBU No new version available. The latest version is 2.2.2
DEBU Checking file: /home/rui/.crc/machines/crc/.crc-exist
DEBU Checking if systemd-resolved.service is running
DEBU Running 'systemctl status systemd-resolved.service'
DEBU systemd-resolved.service is already running
kogito-app_1 | 2021-11-23 13:49:49,773 ERROR [org.kie.dmn.cor.ast.DMNDTExpressionEvaluator] (executor-thread-0) Credit Score='80' does not match any of the valid values [300..850] for decision table 'LLPA'.
kogito-app_1 | 2021-11-23 13:49:49,775 ERROR [org.kie.dmn.cor.imp.DMNRuntimeImpl] (executor-thread-0) Unable to evaluate decision 'Loan Payment' as it depends on decision 'LLPA'
kogito-app_1 | 2021-11-23 13:49:49,776 ERROR [org.kie.dmn.cor.imp.DMNRuntimeImpl] (executor-thread-0) Unable to evaluate decision 'DTI' as it depends on decision 'Loan Payment'
kogito-app_1 | 2021-11-23 13:49:49,776 ERROR [org.kie.dmn.cor.imp.DMNRuntimeImpl] (executor-thread-0) Unable to evaluate decision 'Qualified?' as it depends on decision 'DTI'
kogito-app_1 | 2021-11-23 13:49:49,800 ERROR [org.kie.dmn.cor.ast.DMNDTExpressionEvaluator] (executor-thread-0) Credit Score='67' does not match any of the valid values [300..850] for decision table 'LLPA'.
kogito-app_1 | 2021-11-23 13:49:49,801 ERROR [org.
@ruivieira
ruivieira / trusty-end2end.md
Created November 18, 2021 09:05 — forked from r00ta/trusty-end2end.md
END 2 END TRUSTY INFRASTRUCTURE TESTING

END 2 END TRUSTY INFRASTRUCTURE TESTING

In order to run this test, you have to setup your environment with java, mvn, docker and docker-compose. Tested with

  • openjdk 11.0.6 2020-01-14
  • apache-maven-3.6.3
  • Docker version 20.10.3, build 48d30b5
  • docker-compose version 1.25.2, build 698e2846.
  1. Clone the repositories kiegroup/kogito-runtimes, kiegroup/kogito-apps and kiegroup/kogito-examples. In addition to that, checkout to the release branch: for example if the release is 1.8.x, then run
@ruivieira
ruivieira / crc-start-debug.log
Created May 7, 2020 21:29
`crc --log-level debug start` logs
WARN A new version (1.10.0) has been published on https://cloud.redhat.com/openshift/install/crc/installer-provisioned
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Checking if podman remote binary is cached
DEBU podman remote binary already cached
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
DEBU Checking if the vmx/svm flags are present in /proc/cpuinfo
DEBU CPU virtualization flags are good
INFO Checking if KVM is enabled
@ruivieira
ruivieira / crc-start-debug.log
Created April 30, 2020 16:52
`crc --log-level debug start` logs
DEBU No new version available. The latest version is 1.9.0
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Checking if podman remote binary is cached
DEBU podman remote binary already cached
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
DEBU Checking if the vmx/svm flags are present in /proc/cpuinfo
DEBU CPU virtualization flags are good
INFO Checking if KVM is enabled

Keybase proof

I hereby claim:

  • I am ruivieira on github.
  • I am ruivieira (https://keybase.io/ruivieira) on keybase.
  • I have a public key ASBjeq-GKGX-y__2bagmL1DfRw0uQdI-yg3ZzYdH1Ar0WAo

To claim this, I am signing this object:

import numpy as np
from matplotlib import cm
import matplotlib.pyplot as plt
sample=np.array(['a1','a2','a3','a4','a5','a6'])
y_pos = np.arange(len(sample))
probability=np.array([0.1, 0.05, 0.05, 0.2, 0.4, 0.2])
colours = cm.Blues(probability / max(probability))