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
  • 06:55 (UTC +01:00)
View GitHub Profile
@tumido
tumido / GETTING_STARTED.md
Created September 22, 2017 12:40
manageiq-providers-hawkular Getting Started with collapsible OS specific config

Getting Started

This is a quick guide outlining all the necessary steps to get ManageIQ up and running for development.

Dependencies

  • Ruby 2.3+ (Ruby 2.4.1 recommended)
  • Bundler 1.15.3+
  • PostgreSQL 9.5+
@tumido
tumido / miq_sync.sh
Created October 11, 2017 09:52
ManageIQ repository synchronization script for ZSH (with UTF-8 icons, repo statistics and gnomon)
#!/bin/zsh
MIQ_DIR="$HOME/Programming/ManageIQ"
OLD_PWD="$(pwd)"
SEP=$(printf "%0.1s" " "{1..3})
BRANCH_ICON="\uF126"
PUSH_ICON="\uF01B"
PULL_ICON="\uF01A"
COLOR="31"
@tumido
tumido / ManageIQ Gemfile.dev.rb
Created March 8, 2018 11:58
Developer's Gemfile for gem override, put into `bundler.d` folder in core repo
group :development, :test do
gem 'pry'
gem 'pry-rails'
gem 'pry-remote'
gem 'pry-nav'
gem 'pry-stack_explorer'
gem 'fuubar'
end
repos = [
@tumido
tumido / view_data.md
Last active September 25, 2018 10:29
View Insights data from Parquet

View Insights data from Parquet database

Insights data are stored as Parquet database with snappy compression.

Collect Data

Please follow this guide. Keep in mind that you want all the data (so not just the rule_data folder):

aws s3 sync --profile insights \
@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=...
@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 / 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 / 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 / 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 / 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