Skip to content

Instantly share code, notes, and snippets.

View sevein's full-sized avatar

Jesús García Crespo sevein

View GitHub Profile
{
"chains": {
"01d80b27-4ad1-4bd1-8f8d-f819f18bf685": {
"description": {
"en": "Yes"
},
"link_id": "f19926dd-8fb5-4c79-8ade-c83f61f55b40"
},
"06f03bb3-121d-4c85-bec7-abbc5320a409": {
"description": {
@sevein
sevein / 000.md
Last active February 15, 2018 18:20
Split contour and envoy into separate pods

🚧 Don't use this deployment, it is not safe! 🚧


This is an example created for projectcontour/contour#238.

It uses sevein/contour:test because #238 had not been merged by the time that this example was built.

It includes:

@sevein
sevein / testdata.patch
Created April 25, 2023 08:49
Testdata wrapper with mutator function
diff --git a/pkg/transfer/bag_validation_test.go b/pkg/transfer/bag_validation_test.go
index 578f0b29..8f48247e 100644
--- a/pkg/transfer/bag_validation_test.go
+++ b/pkg/transfer/bag_validation_test.go
@@ -2,20 +2,21 @@ package transfer_test
import (
"os"
+ "path/filepath"
"testing"
@sevein
sevein / ss-schema.json
Last active May 12, 2024 04:58
Archivematica Storage Service API - TastyPie schema
{
"async": {
"list_endpoint": "/api/v2/async/",
"schema": {
"allowed_detail_http_methods": [
"get"
],
"allowed_list_http_methods": [
"get",
"post",
@sevein
sevein / gist:2a4c245cf725468954ea139ae9ed18a4
Created June 21, 2025 05:08
Trivy report on artefactual/clamav (a7f366153a81)
Report Summary
┌─────────────────────────────────────────┬────────┬─────────────────┬─────────┐
│ Target │ Type │ Vulnerabilities │ Secrets │
├─────────────────────────────────────────┼────────┼─────────────────┼─────────┤
│ artefactual/clamav:latest (debian 8.10) │ debian │ 309 │ - │
└─────────────────────────────────────────┴────────┴─────────────────┴─────────┘
Legend:
- '-': Not scanned
@sevein
sevein / bench.sh
Created June 18, 2026 05:46
pygfried benchmark (issue #25)
#!/usr/bin/env bash
set -euo pipefail
INPUT_DIR="${INPUT_DIR:-pictures}"
RUNS="${RUNS:-30}"
WARMUP="${WARMUP:-3}"
WORKERS="${WORKERS:-1,2,4,8,16}"
RESULTS_DIR="${RESULTS_DIR:-bench-results}"
PYGFRIED_SPEC="${PYGFRIED_SPEC:-pygfried @ git+https://github.com/artefactual-labs/pygfried.git@dev/issue-25-many-apis}"
@sevein
sevein / issue-1803-workflow-native-transfer-source-retrieval-plan.md
Created June 19, 2026 09:52
Archivematica Issue 1803 - Workflow-native transfer-source retrieval plan

Issue 1803 workflow-native transfer-source retrieval plan

Issue: archivematica/Issues#1803

Problem

Transfer-source retrieval is currently outside the normal transfer workflow in the MCPServer package-create path. MCPServer creates a Transfer row, copies the selected content from Storage Service into the shared directory, moves the

@sevein
sevein / replace-websocket-monitoring-with-sse.md
Last active June 29, 2026 08:45
Replace WebSocket Monitoring With SSE

Replace WebSocket Monitoring With SSE

Summary

Replace the ingest and storage monitor WebSocket streams with Server-Sent Events (SSE).

Enduro currently exposes two browser-facing monitor streams:

  • GET /ingest/monitor
@sevein
sevein / remove-active-transfers-transfer-submission.md
Last active June 29, 2026 09:26
Archivematica - Remove activeTransfers from transfer submission

Proposal: Remove activeTransfers from transfer submission

Date: 2026-06-29

Branch context: dev/issue-1803-workflow-transfer-retrieval

Summary

Remove watchedDirectories/activeTransfers/* from transfer submission.

@sevein
sevein / remove-active-transfers-transfer-submission-v2.md
Created July 13, 2026 08:20
Archivematica - Remove activeTransfers from transfer submission (V2)

Proposal: Remove activeTransfers from transfer submission

Date: 2026-07-13

Foundation: PR #2313 moved transfer-source retrieval for auto-approved package creation into the normal workflow and is present on qa/1.x.

Summary