Skip to content

Instantly share code, notes, and snippets.

View sebastienblanc's full-sized avatar

Sebastien Blanc sebastienblanc

View GitHub Profile
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
#
# Before building the container image run:
#
# ./mvnw package
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/speech2k8s-jvm .
#!/bin/bash
kubectl cluster-info
while true; do
read -p "Do you want to apply this resource ?" yn
case $yn in
[Yy]* ) kubectl apply -f $1;exit;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
npm ERR! code 1
npm ERR! path /Users/sblanc/summitkeynote/ship-tracker/frontend/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /usr/local/Cellar/node/15.2.1/bin/node /Users/sblanc/summitkeynote/ship-tracker/frontend/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli '/usr/local/Cellar/node/15.2.1/bin/node',
npm ERR! gyp verb cli '/Users/sblanc/summitkeynote/ship-tracker/frontend/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
Error: Unsupported features in 2 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: okio.BufferedSource.getBuffer(). To diagnose the issue you can use the --allow-incomplete-classpath option. The missing method is then reported at run time when it is accessed the first time.
Trace:
at parsing okhttp3.internal.connection.RealConnection.createTunnel(RealConnection.java:411)
Call path from entry point to okhttp3.internal.connection.RealConnection.createTunnel(int, int, Request, HttpUrl):
at okhttp3.internal.connection.RealConnection.createTunnel(RealConnection.java:393)
at okhttp3.internal.connection.RealConnection.connectTunnel(RealConnection.java:236)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:177)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
// code credit: https://www.youtube.com/watch?v=mjfgGJHAuvI
// References:
// - https://docs.oracle.com/javase/8/javafx/api/
//DEPS org.openjfx:javafx-controls:11.0.2:${os.detected.jfxname}
//DEPS org.openjfx:javafx-graphics:11.0.2:${os.detected.jfxname}
//DEPS io.fabric8:kubernetes-client:4.12.0
package jbang.snake;
2020/10/09 16:10:26 http: panic serving 192.168.1.11:52089: runtime error: index out of range [5] with length 4
goroutine 22 [running]:
net/http.(*conn).serve.func1(0xc000341b80)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x1520f60, 0xc0006f1440)
/usr/local/go/src/runtime/panic.go:975 +0x3e9
main.ReconcileKubetoMC.func1(0xc00003c330)
/app/kubecraftadmin.go:42 +0x1f06
reflect.Value.call(0x1401700, 0xc000292a60, 0x13, 0x15e6cfb, 0x4, 0xc00067b7e8, 0x1, 0x1, 0x13c9a60, 0xc0001e2028, ...)
/usr/local/go/src/reflect/value.go:475 +0x8c7
//usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 15
//JAVAC_OPTIONS --enable-preview -source 15
//JAVA_OPTIONS --enable-preview
record Point(int x, int y) {}
sealed interface Shape
permits Circle, Rectangle {
@sebastienblanc
sebastienblanc / records.jsh
Created September 1, 2020 15:31
Showing Java Record
//usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 14
//JAVAC_OPTIONS --enable-preview -source 14
//JAVA_OPTIONS --enable-preview
public record Pet(String name, int age) {}
var pet = new Pet("Nuage",6);
System.out.println(pet);
/exit
Added 'admin' to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json', restart server to load user
-b 0.0.0.0
/opt/jboss/tools/docker-entrypoint.sh: line 138: append_port_db_addr: command not found
=========================================================================
Using PostgreSQL database
=========================================================================
07:57:07,131 INFO [org.jboss.modules] (CLI command executor) JBoss Modules version 1.9.1.Final
Error: Error compiling query code (in /tmp/SVM-7967788261001287877/PosixDirectives.c). Compiler command gcc /tmp/SVM-7967788261001287877/PosixDirectives.c -o /tmp/SVM-7967788261001287877/PosixDirectives output included error: /tmp/SVM-7967788261001287877/PosixDirectives.c:1822:101: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGRARP’?
method com.oracle.svm.core.posix.headers.Unistd._SC_XOPEN_XCU_VERSION()
C file contents around line 1822:
/tmp/SVM-7967788261001287877/PosixDirectives.c:1821: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:_SC_XOPEN_XCU_VERSION:PropertyInfo:value=%lX\n", _SC_XOPEN_XCU_VERSION);
/tmp/SVM-7967788261001287877/PosixDirectives.c:1822: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:SIOCGSTAMP:PropertyInfo:size=%lu\n", sizeof(SIOCGSTAMP));
/tmp/SVM-7967788261001287877/PosixDirectives.c:1823: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:SIOCGSTAMP:PropertyInfo:signedness=$%s$\n", (IS_CONST_UNSIGNED(SIOCGS