see all on https://mermaid.live
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
const query = | |
"Fais-moi un texte de RAP à la gloire de betagouv et formattes le en markdown"; | |
const res = fetch( | |
"https://api.scaleway.ai/xxx", | |
{ | |
method: "POST", | |
headers: { | |
Authorization: "Bearer xxx", | |
"Content-Type": "application/json", |
// @ts-check | |
// run in your browser or with `node internet.mjs` with the ALBERT_API_KEY set below | |
// see also: https://albert.api.etalab.gouv.fr/documentation | |
const API_KEY = process.env.ALBERT_API_KEY; | |
const API_URL = "https://albert.api.etalab.gouv.fr"; | |
const LANGUAGE_MODEL = "AgentPublic/llama3-instruct-8b"; // see https://albert.api.etalab.gouv.fr/v1/models |
// @ts-check | |
// see also: https://albert.api.etalab.gouv.fr/documentation | |
import { readFile, readdir } from "fs/promises"; | |
import pAll from "p-all"; | |
const API_KEY = process.env.ALBERT_API_KEY; | |
const API_URL = "https://albert.api.etalab.gouv.fr"; |
see all on https://mermaid.live
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
UGAP: https://extranet.smlb-next.com/SmlbExtranet Inscription nuage public : https://www.nuagepublic.fr/
sequenceDiagram
participant Commanditaire
participant UGAP
participant Fournisseur
participant GRIST
sequenceDiagram
participant User
participant Proxy
participant GitHub
participant App
User->>Proxy: Visits protected URL
Proxy->>User: 302 Redirect to GitHub login
User->>GitHub: GET /login
Hello world
Some fun links : good stuff
Some invalid stuff
blalbla More good stuff
in the /users/overview browser console:
const table = document.querySelector("table#users-table");
const unsecureUsers = Array.from(table.querySelectorAll("tbody tr")).filter(r=>!r.innerHTML.includes("2FA is enabled")).map(r => r.querySelector("td.sorting_1:first-of-type span.d-block").textContent);
copy(unsecureUsers.join("\n")); // clipboard copy