Skip to content

Instantly share code, notes, and snippets.

View metlos's full-sized avatar

Lukas Krejci metlos

View GitHub Profile
@metlos
metlos / git-where-am-i
Last active February 27, 2024 14:04
To be put in the $PATH. You tell it a directory and it will search for all git repositories underneath it, outputting the current branch and clean/dirty state for each
#!/bin/sh
function usage {
echo "USAGE"
echo "git where-am-i DIR"
}
function report_dir {
local prefix=$1
@metlos
metlos / aliases
Last active October 12, 2022 14:47
git aliases for pull requests and other useful stuff
[alias]
tracking-branch = !git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)
current-branch = !git rev-parse --abbrev-ref HEAD
#last commit
last = log -1
#assumes the upstream repo is called origin
@metlos
metlos / issue-triage-20210316.adoc
Last active March 16, 2021 17:37
Issue Triage 2021-03-16
@metlos
metlos / issue-triage-20210105.adoc
Last active January 5, 2021 18:46
Issue Triage 20210105

Severity/p1

  • releases of che-plugin-registry contain invalid data #18727

  • Implement cheCDN resources prefetching in Dashboard Next #18728

  • [hosted Che] CPU limitations for plugin sidecar is not applied #18730

Severity/p2

N/A

Severity/p1

  • How to delete an invalid secret? #18206

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

Severity/p2

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

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.
icon: https://raw.githubusercontent.com/theia-ide/theia/master/logo/theia-logo-no-text-black.svg?sanitize=true
category: Editor
@metlos
metlos / issue-triage-2020-06-09.adoc
Last active June 9, 2020 13:03
Issue Triage 2020-06-09
@metlos
metlos / crc-rebuild.sh
Last active January 20, 2020 08:37
Rebuild local che server and push the image into internal registry of CRC
#!/bin/sh
# 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_DIR=`pwd`
CUR_USER=`oc whoami`
@metlos
metlos / crc-postinstall.sh
Created January 20, 2020 08:31
CRC post install setup to work nicely with Eclipse Che
#!/bin/sh
set_vm_limits() {
sudo virsh setmaxmem crc 16G --config
sudo virsh setmem crc 16G --config
}
crc stop
set_vm_limits
crc start
@metlos
metlos / README.adoc
Last active February 5, 2019 10:48
Openshift Template for monitoring of Che server

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.