Skip to content

Instantly share code, notes, and snippets.

View tumido's full-sized avatar
👻
Scaring bugs away

Tom Coufal tumido

👻
Scaring bugs away
  • Red Hat
  • Czech Republic
  • 02:48 (UTC +01:00)
View GitHub Profile
from kfp import dsl, Client
import kfp
import kubernetes
from os import getenv
from typing import Optional
print("KFP SDK version:", kfp.__version__)
print("Kubernetes SDK version:", kubernetes.__version__)
client = Client(existing_token=getenv("TOKEN"), host=getenv("HOST"), verify_ssl=False)
apiVersion: backstage.io/v1alpha1
kind: User
metadata:
name: tumido
spec:
profile:
displayName: Tom Coufal
email: tcoufal@redhat.com
picture: https://avatars.githubusercontent.com/u/7453394
memberOf: [default/toms-team]
apiVersion: v1
entries:
backstage:
- annotations:
artifacthub.io/category: integration-delivery
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: support
url: https://github.com/janus-idp/helm-backstage/issues
- name: Chart Source
@tumido
tumido / index.yaml
Last active November 23, 2023 10:45
apiVersion: v1
entries:
backstage:
- annotations:
artifacthub.io/category: integration-delivery
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: support
url: https://github.com/janus-idp/helm-backstage/issues
- name: Chart Source
@tumido
tumido / kfdef.yaml
Last active November 24, 2020 09:48
ODH - Standalone Data Catalog
apiVersion: kfdef.apps.kubeflow.org/v1
kind: KfDef
metadata:
name: opendatahub
namespace: opendatahub-datacatalog
spec:
applications:
- kustomizeConfig:
repoRef:
name: manifests
@tumido
tumido / gitlab.md
Last active June 10, 2020 11:39
GitLab flow with Jupyter notebooks

Few prerequisites

username=tcoufal
upstream=data-hub

1. Go to the web ui and fork the repo

2. Clone your fork

@tumido
tumido / output.txt
Created February 28, 2020 09:46
Ansible variable precedence
/tmp/precedense_test ~
⚠️ Command line take precedense
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [Deploy DataHub Argo workflows] ************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************************************
ok: [127.0.0.1]
@tumido
tumido / benchmark.py
Last active March 7, 2019 14:04
A Python dict benchmark
# Based on https://stackoverflow.com/a/19643045
from collections import defaultdict
from collections import OrderedDict
try:
t=unichr(100)
except NameError:
unichr=chr
@tumido
tumido / aiops_deploy.md
Created December 10, 2018 19:16
Deploy AI-Ops using the ocdeployer

How-to: Deploy AI-Ops

Setup

git clone git@github.com:RedHatInsights/e2e-deploy.git
cd e2e-deploy

Download or create the default secrets for:

@tumido
tumido / DEPLOY_CONFIG.md
Last active October 12, 2018 09:10
AI-OPS pipeline
❯ oc create -f aiops-pipeline.yaml
❯ oc new-app --template aiops-pipeline --param AWS_KEY=... --param AWS_SECRET=...