Skip to content

Instantly share code, notes, and snippets.

View DuncanDoyle's full-sized avatar

Duncan Doyle DuncanDoyle

View GitHub Profile
#!/bin/sh
NAMESPACE=$1
TOKEN=$(oc whoami -t)
#OC_URL=https://api.crc.testing:6443
OC_URL=$(oc config view --minify -o jsonpath='{.clusters[*].cluster.server}')
oc get namespace $NAMESPACE -o json > $NAMESPACE-namespace.json
jq 'del(.spec.finalizers[])' $NAMESPACE-namespace.json > $NAMESPACE-namespace-finalizers.json
{
"apiVersion": "camel.apache.org/v1",
"kind": "Integration",
"metadata": {
"creationTimestamp": "2020-07-08T09:20:24Z",
"generation": 1,
"name": "timed-greeter",
"namespace": "knativetutorial",
"resourceVersion": "638666",
"selfLink": "/apis/camel.apache.org/v1/namespaces/knativetutorial/integrations/timed-greeter",
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jey</groupId>
<artifactId>jey-kogito</artifactId>
<version>1.0-SNAPSHOT</version>
<description>Generated project jey-kogito</description>
<properties>
package com.redhat.piidmigration;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.sql.Connection;
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.diligesoft</groupId>
<artifactId>sheelon</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.diligesoft</groupId>
<artifactId>sheelon</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
#!/bin/sh
java --add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
-jar target/kafdrop-3.24.0.jar \
--kafka.brokerConnect=localhost:9092
{
"knapsack": {
"maxWeight": 10
},
"ingots" : [
{
"weight": 4,
"value": 15
},
{
2020-04-06 19:08:50.866 ERROR 25689 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Solving failed.] with root cause
java.lang.NullPointerException: null
at java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:57) ~[na:na]
at java.base/jdk.internal.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36) ~[na:na]
at java.base/java.lang.reflect.Field.get(Field.java:418) ~[na:na]
at org.optaplanner.core.impl.domain.common.accessor.ReflectionFieldMemberAccessor.executeGetter(ReflectionFieldMemberAccessor.java:59) ~[optaplanner-core-7.35.0.Final.jar!/:7.35.0.Final]
at org.optaplanner.core.impl.domain.constraintweight.descriptor.ConstraintWeightDescriptor.lambda$createExtractor$0(ConstraintWeightDescriptor.java:82) ~[optaplan
{
"processes" : [
{
"id": 0,
"requiredCpuPower": 1,
"requiredMemory": 1,
"requiredNetworkBandwidth": 1
},
{
"id": 1,