Skip to content

Instantly share code, notes, and snippets.

View ndeloof's full-sized avatar
💭
Preparing a new set of bugs

Nicolas De loof ndeloof

💭
Preparing a new set of bugs
View GitHub Profile
models:
llama:
model: ai/example-model
context-size: 1024
runtime-flags: "--no-prefill-assistant"
services:
# Option 1 : by host alias
app:
services:
app:
image: app-without-curl-inside
# app is running a webserver on 8080
app-health:
image: curl
command: sleep infinity
network_mode: "service:app"
healthcheck:
@ndeloof
ndeloof / docker.sh
Created February 1, 2023 09:05
completion for docker CLI
# bash completion V2 for docker -*- shell-script -*-
__docker_debug()
{
if [[ -n ${BASH_COMP_DEBUG_FILE:-} ]]; then
echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
fi
}
# Macs have bash3 for which the bash-completion package doesn't include
#! /bin/bash
# Compatibility check for registry to support multi-architecutre docker images
# (also required for docker app support)
#
# Usage:
# docker login <REGISTRY>
# ...
# ./multiarch.sh <REGISTRY>
#
#! /bin/bash
# Compatibility check for registry to support multi-architecutre docker images
# (also required for docker app support)
#
# Usage:
# docker login <REGISTRY>
# ...
# ./multiarch.sh <REGISTRY>
#
@ndeloof
ndeloof / eks.md
Created September 11, 2019 08:01
compose-on-eks

Following docs on https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html

Create EKS cluster

~ eksctl create cluster --name kikito --version 1.14 --nodegroup-name standard-workers --node-type m5.large --nodes 2 --nodes-min 1 --nodes-max 4 --node-ami auto --ssh-access
[ℹ]  using region eu-west-3
[ℹ]  setting availability zones to [eu-west-3a eu-west-3b eu-west-3c]
[ℹ]  subnets for eu-west-3a - public:192.168.0.0/19 private:192.168.96.0/19
[ℹ]  subnets for eu-west-3b - public:192.168.32.0/19 private:192.168.128.0/19
pipelines:
build:
steps:
- image: alpine
sh: "hello world"
@ndeloof
ndeloof / pipeline.yaml
Created June 7, 2019 08:19
Tekton Hello-world
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: say-hello
spec:
inputs:
params:
- name: who
description: who to say hello
default: kitty
@ndeloof
ndeloof / pipeline.yaml
Created June 7, 2019 08:19
Tekton Hello-world
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: say-hello
spec:
inputs:
params:
- name: who
description: who to say hello
default: kitty
@ndeloof
ndeloof / gist:7c6632c11be8faacae428128f5850053
Created September 2, 2017 22:44
failure running `mvn hpi:run` from remoting-plugin
Exception in thread "main" java.util.ServiceConfigurationError: jenkins.bootstrap.BootLogic: Provider hudson.WebAppMain could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at jenkins.bootstrap.Bootstrap.loadBootLogics(Bootstrap.java:209)
at jenkins.bootstrap.Bootstrap.contextInitialized(Bootstrap.java:106)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:890)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)