Skip to content

Instantly share code, notes, and snippets.

View revolunet's full-sized avatar
🐫
Killing bugz

Julien Bouquillon revolunet

🐫
Killing bugz
View GitHub Profile
@revolunet
revolunet / cnpg-pgvector.Dockefile
Created April 21, 2023 00:48
CNPG + pgvector Dockerfile
#
# CNPG operand image with pgvector extension
# build with : `docker build . -f Dockerfile.cnpg-pgvector -t cnpg-pgvector`
#
ARG PG_MAJOR=15
ARG PGVECTOR_TAG=v0.4.1
FROM ghcr.io/cloudnative-pg/postgresql:$PG_MAJOR as builder
@revolunet
revolunet / docker-fun.md
Last active January 26, 2023 21:43
Fun docker images
@revolunet
revolunet / README.md
Created December 7, 2022 18:14
Docs ingestion and refine
graph LR;

documents-->|upload xls,pdf,img,doc,csv...|Interface
Interface-->Drive
Drive-->Enrichissement2[Enrichissement manuel]
Enrichissement2-->TAG1[Tagging documents]
Enrichissement2-->Enr[Docs par complétude]
Drive-->Enrichissement[Enrichissement auto]
Enrichissement-->Extract1[Extract noms,montants,adresses NER]
@revolunet
revolunet / publicode.yaml
Last active November 24, 2022 12:24
test publicode covid
# implémentation de démo https://github.com/Delegation-numerique-en-sante/covid19-algorithme-orientation/blob/master/pseudo-code.org
### Symptômes
symptômes: oui
symptômes . température:
question: Quelle a été votre température la plus élevée ces dernières 48 heures ?
symptômes . toux:
@revolunet
revolunet / publicodes.yaml
Created October 24, 2022 22:55
publi.codes modele teletravail
# Bienvenue dans le bac à sable du langage publicode !
# Pour en savoir plus sur le langage :
# => https://publi.codes/documentation/principes-de-base
# Quelques variables à paramétrer pour la simulation
mode-transport: "'train'"
maison:
@revolunet
revolunet / example.js
Created October 7, 2022 10:39
sample NodeJS fetch
const fetch = require("node-fetch");
fetch("https://api.insee.fr/entreprises/sirene/V3/siren?q=michelin", {
method: "POST",
headers: {
Accept: "application/json"
}
}).then(response => responses.json()).then(payload => {
console.log(payload);
}).catch(error => {
@revolunet
revolunet / pod-debug.yaml
Created July 28, 2022 10:48
pod + volume
apiVersion: v1
kind: Pod
metadata:
annotations:
labels:
application: sre
component: pe-debug
name: pe-debug
namespace: sre
spec:
@revolunet
revolunet / README.md
Last active July 19, 2022 06:48
EN translation for "Ce que les développeurs doivent savoir sur les index (Nelson Dionisi)"
@revolunet
revolunet / Dockerfile
Created August 5, 2021 04:23
Next.js Dockerfile with NEXT_PUBLIC_* variables
#
# Build a Next.js docker image with NEXT_PUBLIC_* env variables
#
# This makes the docker build not portable : you can't change these variables at runtime
#
FROM node:15-alpine as builder
WORKDIR /app
@revolunet
revolunet / sync.sh
Last active June 21, 2021 15:20
backup/restore some volume/db
#!/bin/sh
#
# Volumes
#
# copy preprod
kubectl --context dev2 --namespace xxx-224-preprod-dev2 cp strapi-68db665b4f-qlxzx:/app/public/uploads ./xxx-preprod
# to prod