Skip to content

Instantly share code, notes, and snippets.

View jeffmaury's full-sized avatar
🏠
Working from home

Jeff MAURY jeffmaury

🏠
Working from home
View GitHub Profile
@jeffmaury
jeffmaury / LLM.md
Created April 1, 2023 09:48 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

apiVersion: "apps/v1"
kind: "Deployment"
metadata:
labels:
app: "nginx"
name: "nginx-deployment"
spec:
progressDeadlineSeconds: 600
replicas: 3
revisionHistoryLimit: 10
2020-11-04 12:19:36,005 [ 541031] WARN - lij.kubernetes.model.ModelData - Unable to read CRD specification from jar://C:/work/src/github.com/redhat-developer/intellij-tekton/build/idea-sandbox/plugins/com.redhat.devtools.intellij.tekton/lib/intellij-tekton-0.3.0-SNAPSHOT.jar!/crds/triggers.tekton.dev_triggertemplates.yaml
java.lang.Throwable: Control-flow exceptions (like ProcessCanceledException) should never be logged
at com.intellij.openapi.diagnostic.Logger.checkException(Logger.java:195)
at com.intellij.idea.IdeaLogger.warn(IdeaLogger.java:82)
at com.intellij.kubernetes.model.ModelData$Companion.readCrdSpec(ModelData.kt:254)
at com.intellij.kubernetes.model.ModelData$Companion.readSpec(ModelData.kt:110)
at com.intellij.kubernetes.model.ModelData$Companion.load(ModelData.kt:89)
at com.intellij.kubernetes.model.RegularKubernetesModel$Companion$load$1.invoke(KubernetesModel.kt:53)
at com.intellij.kubernetes.model.RegularKubernetesModel$Companion$load$1.invoke(KubernetesModel.kt:44)
at com.intelli
{"$schema":"http://json-schema.org/draft-07/schema#","definitions":{"root":{"type":"object","properties":{"mp":{"type":"object","properties":{"context":{"type":"object","properties":{"ThreadContext":{"type":"object","properties":{"propagated":{"type":"string","description":"Defines the set of thread context types to capture from the thread that contextualizes an action or task. This context is later re-established on the thread(s) where the action or task executes.\n\n The MicroProfile Config property, `mp.context.ThreadContext.propagated`, establishes a default that is used if no value is otherwise specified. The value of the MicroProfile Config property can be the empty string or a comma separated list of context type constant values."},"cleared":{"type":"string","description":"Defines the set of thread context types to clear from the thread where the action or task executes. The previous context is resumed on the thread after the action or task ends. This context is later re-established on the thread(s) wh
@jeffmaury
jeffmaury / README
Last active June 30, 2020 12:04
intellij-quarkus
See the zip file
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
creationTimestamp: "2020-05-13T15:12:32Z"
generation: 1
name: foo
namespace: tekton
resourceVersion: "1804"
selfLink: /apis/tekton.dev/v1alpha1/namespaces/tekton/tasks/foo
uid: 1f82e7d8-9851-4a85-8629-abe03b77b9c7
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/Pipeline",
"definitions": {
"ArrayOrString": {
"required": [
"Type",
"StringVal",
"ArrayVal"
],
private void waitForPortAvailable(int port, IProgressMonitor monitor) throws CoreException{
long start = System.currentTimeMillis();
while (System.currentTimeMillis() - start < 60_000 && !monitor.isCanceled()) {
try (Socket socket = new Socket("localhost", port)) {
return;
} catch (ConnectException e) {
try {
Thread.sleep(1000L);
} catch (InterruptedException e1) {
throw new CoreException(new Status(IStatus.ERROR, QuarkusCorePlugin.PLUGIN_ID, e.getLocalizedMessage()));
$ oc get all -n openshift-marketplace
NAME READY STATUS RESTARTS AGE
pod/certified-operators-57b9c7d85-qb9hh 1/1 Running 0 20d
pod/community-operators-5df9477c98-xcc2n 1/1 Running 0 19d
pod/marketplace-operator-d6774f7b6-hzslt 1/1 Running 0 20d
pod/redhat-operators-6d647d6fcb-xzww9 1/1 Running 0 19d
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/certified-operators ClusterIP
def bout = new ByteArrayOutputStream()
def out = new PrintStream(bout)
"ls -l /qa/tools/opt/openjdk11_last".execute().waitForProcessOutput( out, System.err )
println(out)
println(bout)