https://elearningunodc.org/local/pages/?id=3
vendredi 21 novembre 2025
mardi 30 septembre 2025
[ref] Chainguard 101
- https://images.chainguard.dev/
- https://edu.chainguard.dev/
- https://edu.chainguard.dev/chainguard/chainguard-images/videos/debugging_distroless/
- https://github.com/iximiuz/cdebug
- https://mt165.co.uk/blog/static-link-go/
jeudi 11 septembre 2025
Image magick, reduce size of jpg files by 50%
for file in *.jpg; do magick "$file" -resize 50% "resized/$file"; done
lundi 8 septembre 2025
Ansible : GCP Google Cloud (Compute) ansible dynamic inventory with cache
Inventory definition GCP compute
jeudi 28 août 2025
Systemd healtcheck with side service and monotonic timer, auto-healing
What : bypass the lack of healthcheck of systemd
- systemd service "what-service.service"
- systemd timer "what-service-healthcheck.timer"
- triggers a systemd service "what-service-healthcheck.service"which lanches a script "service_health_check.sh"
- script that :
- curl's heal-tcheck URL "HEALTH_CHECK_URL"
- if KO, restart the targetted service
what-service-healthcheck.timer
WantedBy=timers.target
ansible.builtin.service:
jeudi 24 juillet 2025
apt info - ansible tasks + roles to install apt_info.py automatically along node-exporter + Grafana dashboard
Create a file with openmetrics values, so that it be exporter along node-exporter metrics.
=> script runs every 12h to report the status of apt packages to upgrade writes it in /var/lib/node_exporter/apt_info.prom
which is ingested by prometheus when calling node-exporter.
The metrics are used by a grafana dashboard available here : https://grafana.com/grafana/dashboards/23777-apt-ugrades/
```
jeudi 29 mai 2025
SRE & monitoring of distributed systems
- Google SRE book, Chapter 6
https://sre.google/sre-book/monitoring-distributed-systems/
(and more globally, the whole Goolge SRE book explains a full methodology of SRE from monitoring to incident management)
- RED Method explained at GrafanaCon 2018 https://grafana.com/blog/2018/08/02/the-red-method-how-to-instrument-your-services/
- USE Deep dive http://brendangregg.com/usemethod.html
mercredi 28 mai 2025
Some cryptographic references and blockchain applications
Preface: [...] This book is about exactly that: constructing practical cryptosystems for which we can argue security under plausible assumptions. The book covers many constructions for different tasks in cryptography. For each task we define a precise security goal that we aim to achieve and then present constructions that achieve the required goal. To analyze the constructions, we develop a unified framework for doing cryptographic proofs. A reader who masters this framework will be capable of applying it to new constructions that may not be covered in the book.[...]
Abstract: We construct new multi-signature schemes that provide newfunctionality. Our schemes are designed to reduce the size of the Bitcoinblockchain, but are useful in many other settings where multi-signaturesare needed. All our constructions support both signature compressionand public-key aggregation. Hence, to verify that a number of partiessigned a common message m, the verifier only needs a short multi-signature, a short aggregation of their public keys, and the message m.We give new constructions that are derived from Schnorr signatures andfrom BLS signatures. Our constructions are in the plain public key model,meaning that users do not need to prove knowledge or possession of theirsecret key.
Intro: Consensus algorithm is one of the most important components in blockchain. Harmony Blockchain achieves consensus through the Fast Byzantine Fault Tolerance (FBFT) algorithm. In FBFT, instead of asking all validators to broadcast their votes, the leader runs a multi-signature signing process to collect the validators’ votes in a O(1)-sized multi-signature and then broadcast it to all validators. Consensus is reached when all the validators validate the aggregated signature against the aggregated public keys for this round of consensus.
(vrac / to edit / to format) Prometheus sandbox - demo / prometheus relabeling tool & ref / grafana demo
* The Art of Metric Relabeling in Prometheus:
https://heiioncall.com/guides/the-art-of-metric-relabeling-in-prometheus
* relabeler online testing tool :
https://relabeler.promlabs.com/
* relabeling cookbook (mostly compatible with prometheus too) https://docs.victoriametrics.com/victoriametrics/relabeling/#how-to-remove-labels-from-targets
* open / demo instance of grafana : https://play.grafana.org/
* Grafana dashboards directory : https://grafana.com/grafana/dashboards/
* Open / demo instance of prometheus :
https://prometheus.demo.prometheus.io/query
https://prometheus.demo.prometheus.io/config