Skip to content

Instantly share code, notes, and snippets.


Lukas Krejci metlos

View GitHub Profile
View issue-triage-2020-10-27.adoc


  • How to delete an invalid secret? #18206

  • Update VS code Extension Language support for Apache Camel to 0.0.28 #18204


Option to skip ingress availability checking #18213 Add instructions about how to run tasks in che-theia welcome page #18210

View meta.yaml
apiVersion: v2
publisher: eclipse
name: che-theia
version: next
type: Che Editor
displayName: theia-ide
title: Eclipse Theia development version.
description: Eclipse Theia, get the latest release each day.
category: Editor
metlos / issue-triage-2020-06-09.adoc
Last active Jun 9, 2020
Issue Triage 2020-06-09
View issue-triage-2020-06-09.adoc




metlos /
Last active Jan 20, 2020
Rebuild local che server and push the image into internal registry of CRC
# This should run a level above the Eclipse Che server checkout which is assumed in a subdir called "che".
# CRC is assumed to be running.
# Che is assumed to be installed by chectl using operator.
# It uses podman for the images and assumes docker is aliased to podman.
CUR_USER=`oc whoami`
metlos /
Created Jan 20, 2020
CRC post install setup to work nicely with Eclipse Che
set_vm_limits() {
sudo virsh setmaxmem crc 16G --config
sudo virsh setmem crc 16G --config
crc stop
crc start
metlos / README.adoc
Last active Feb 5, 2019
Openshift Template for monitoring of Che server
View README.adoc

Import this into your Che installation to gain monitoring and visualization capabilities.

All you need to do is to create a route exposing your grafana service. Also make sure that Prometheus is configured to scrape your Che server correctly - look at the prometheus-config config map and make sure that the targets lists the correct hostname of the Che server within your project.

Also make sure that your Che server is configured to expose the metrics. The CHE_METRICS_ENABLED environment variable of the che deployment needs to be set to true.

To access the Grafana dashboard, use the username admin with password admin. Once in Grafana, you will see a preconfigured dashboard called "Che Server" containing some basic stats about the Che installation.

metlos / README.adoc
Created Feb 4, 2019
Sample Grafana dashboard for Che.
View README.adoc

This expects a datasource called "Che" in grafana.

To do that, simply create a new datasource in grafana UI with the type "Prometheus" and the URL pointing to the Prometheus server, e.g. http://prometheus:9090.

metlos / commit-msg
Created Jan 16, 2019
auto-sign-off - almost identical to the sample commit-msg hook from git, only adding a newline between the commit message and the sign-off
View commit-msg
# An example hook script to check the commit log message.
# Called by "git commit" with one argument, the name of the file
# that has the commit message. The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the
# commit. The hook is allowed to edit the commit message file.
# To enable this hook, rename this file to "commit-msg".
View Inventory REST proposal
cpath of entity - enCpath
cpath of element - elCpath
general element
RUD -> /path/{elCpath} (or /element/{elCpath}? because this isn't consistent with the rest of the REST are we asking for the path of a {elCpath} ?)
CRUD -> /relationships/{enCpath}
* Copyright (c) 2004-2014, PostgreSQL Global Development Group
package org.postgresql.test.leaks;
import java.lang.ref.WeakReference;
You can’t perform that action at this time.