Skip to content

Instantly share code, notes, and snippets.

View debovema's full-sized avatar

Mathieu Debove debovema

  • Red Hat
  • Paris, France
View GitHub Profile
@debovema
debovema / eclipse-che-wsl2.sh
Last active April 19, 2023 04:02
Eclipse Che on WSL2
# start a Minikube instance
minikube start --addons=ingress --driver=docker --memory=12288 --cpus=6
# deploy Eclipse Che
chectl server:deploy --platform=minikube
# configure network
## 1. edit /etc/hosts in WSL2 (warning: this will not persist across WSL restarts)
echo "127.0.0.1\t$(minikube ip).nip.io" | sudo tee -a /etc/hosts
@debovema
debovema / kind-with-local-registry.sh
Last active January 10, 2022 15:26 — forked from orpiske/kind-with-local-registry.sh
Kind with local registry (with registry address fixes)
#!/bin/sh
set -o errexit
####
## Kind cluster with local registry (fixed script from the upstream kind). See NOTE comments below for the changed items
# create registry container unless it already exists
reg_name='kind-registry'
reg_port='5000'
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)"
@debovema
debovema / artifacts-0.9.0-nightly.xml
Last active December 10, 2021 14:58
Differences between glsp-server 0.9.0 release and nigtly
<?xml version='1.0' encoding='UTF-8'?>
<?artifactRepository version='1.1.0'?>
<repository name='org.eclipse.glsp.repository' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
<properties size='3'>
<property name='publishPackFilesAsSiblings' value='true'/>
<property name='p2.compressed' value='true'/>
<property name='p2.timestamp' value='1638874102883'/>
</properties>
<mappings size='5'>
<rule filter='(&amp; (classifier=osgi.bundle) (format=packed))' output='${repoUrl}/plugins/${id}_${version}.jar.pack.gz'/>
@debovema
debovema / frontend-contribution.ts
Created October 21, 2021 07:13 — forked from drochgenius/frontend-contribution.ts
Hide unused activity bar icons (view container icons)
import { injectable } from 'inversify';
import { FrontendApplicationContribution, FrontendApplication } from '@theia/core/lib/browser';
import { MaybePromise } from '@theia/core/lib/common/types';
import { Widget } from '@theia/core/lib/browser/widgets';
@injectable()
export class ExampleFrontendContribution implements FrontendApplicationContribution {
/**
* Called after the application shell has been attached in case there is no previous workbench layout state.
* Should return a promise if it runs asynchronously.
@debovema
debovema / .gitignore
Last active February 19, 2024 20:05
OpenWrt custom firmware for Xiaomi Mi Router 3g (with FPU emulator enabled, custom packages preinstalled, AzireVPN preconfigured)
openwrt/
@debovema
debovema / k3s-multipass.sh
Created February 13, 2020 09:16 — forked from lucj/k3s-multipass.sh
Setup a k3s kubernetes cluster using Multipass VMs
for node in node1 node2 node3;do
multipass launch -n $node
done
# Init cluster on node1
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -"
# Get node1's IP
IP=$(multipass info node1 | grep IPv4 | awk '{print $2}')
@debovema
debovema / traefik.yaml
Last active January 24, 2020 14:47 — forked from akhenakh/traefik.yaml
traefik 2.0 Kubernetes
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ingressroutes.traefik.containo.us
spec:
group: traefik.containo.us
version: v1alpha1
names:
kind: IngressRoute
@debovema
debovema / docker-compose.yml
Created January 1, 2020 22:47 — forked from pyrou/docker-compose.yml
Use https://traefik.me SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
ports:
- "80:80"
- "443:443"
labels:
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
@debovema
debovema / test_common.sh
Last active February 27, 2019 14:44
Test the installation of contribution "github.com/square-it/flogo-opentracing-listener@v0.0.2" with 'go get' and 'go mod' methods
#!/bin/bash
# clear cache
rm -rf /go/pkg/mod/*
# clear app if it exists
rm -rf /tmp/app
# create app
cd /tmp
flogo create app