Skip to content

Instantly share code, notes, and snippets.

View quintesse's full-sized avatar

Tako Schotanus quintesse

  • RedHat
  • Madrid, Spain
View GitHub Profile
@quintesse
quintesse / input.java
Created March 16, 2022 10:28
Input test
package dev.jbang.util;
import java.io.*;
public class input {
public static void main(String... args) throws IOException {
Reader r;
if (args.length == 0 || args[0].equals("-")) {
r = new InputStreamReader(System.in);
} else {
@quintesse
quintesse / Dockerfile
Last active July 13, 2021 17:35
Dockerfile Rootless RPMs
FROM registry.access.redhat.com/ubi8/ubi:latest
RUN dnf install -y cpio yum-utils
RUN useradd -ms /bin/bash notroot
RUN ln -s /home/notroot/pkgs/usr/bin/node /usr/bin/node ; \
ln -s /home/notroot/pkgs/usr/bin/npm /usr/bin/npm ; \
ln -s /home/notroot/pkgs/usr/bin/npx /usr/bin/npx
@quintesse
quintesse / pipeline.yml
Created August 19, 2020 14:09
Maven Tekton Pipeline
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: quarkus-build
spec:
params:
- name: BUILDER_IMAGE
description: The location of the s2i builder image.
default: quay.io/quarkus/centos-quarkus-maven:20.1.0-java11
- name: PATH_CONTEXT
@quintesse
quintesse / catalog_launcher.json
Last active May 31, 2018 19:49
With "X-App=launcher"
{
"boosters": [
{
"metadata": {
"app": {
"osio": {
"enabled": false
},
"launcher": {
"runsOn": [
@quintesse
quintesse / catalog_oisio.json
Last active May 31, 2018 19:49
With "X-App=osio"
{
"boosters": [
{
"metadata": {
"app": {
"osio": {
"enabled": true
}
}
},
@quintesse
quintesse / catalog.json
Last active May 31, 2018 19:49
No "X-App" set
{
"boosters": [
{
"metadata": {
"app": {
"osio": {
"enabled": false
},
"launcher": {
"runsOn": [
[
{
"metadata": {
"runsOn": [
"!starter",
"!osio"
]
},
"mission": "circuit-breaker",
"name": "Red Hat Fuse - Circuit Breaker Example",
swagger: '2.0'
info:
version: '2.0.0'
title: Launcher Backend API
description: This document defines the REST endpoints exposed by the launcher-backend component
host: forge.api.prod-preview.openshift.io
basePath: /api
schemes:
- https
@quintesse
quintesse / main.ceylon
Created March 10, 2017 23:38
Ceylon Web Runner: Nullable Callable
//$webrun_wrapped
shared void run() {
Anything(String)? onEvent = null;
if (exists onEvent) {
onEvent("foo");
}
}
@quintesse
quintesse / module.ceylon
Created October 25, 2016 18:11
Self-typechecking Ceylon program
native("jvm")
module selftypecheck "1.0.0" {
import ceylon.interop.java "1.3.1-SNAPSHOT";
import com.redhat.ceylon.typechecker "1.3.1-SNAPSHOT";
import com.redhat.ceylon.compiler.java "1.3.1-SNAPSHOT";
}