see all on https://mermaid.live
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
// @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 SCC
participant Fournisseur
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
#!/bin/sh | |
# pip install diffusionkit-cli | |
# example: ./gen-diffusionkit.sh group-of-people-having-an-eureka-moment | |
PROMPT="$@" | |
if [ ${#PROMPT} -le 5 ]; then | |
echo "Please provide an explicit prompt" | |
exit 1 |
import { when } from "q"; | |
import Sellsy from "node-sellsy"; | |
import { getBookeoProductId } from "./bookeo"; | |
export const TVA = 20; | |
/** | |
* create sellsy invoice and paymanet | |
* return existing customer if any |
await db | |
.with("expiration_date", (db) => | |
db | |
.selectFrom("missions") | |
.select(({ fn }) => ["user_id", fn.max("end").as("expiration")]) | |
.groupBy("user_id") | |
) | |
.selectFrom(["users", "expiration_date"]) | |
.select([ | |
"users.username", |