Skip to content

Instantly share code, notes, and snippets.

Jesús García Crespo sevein

Block or report user

Report or block sevein

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sevein /
Last active Feb 15, 2018
Split contour and envoy into separate pods

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

This is an example created for

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

It includes:

View rdss-20180206.json
"chains": {
"01d80b27-4ad1-4bd1-8f8d-f819f18bf685": {
"description": {
"en": "Yes"
"link_id": "f19926dd-8fb5-4c79-8ade-c83f61f55b40"
"06f03bb3-121d-4c85-bec7-abbc5320a409": {
"description": {
sevein /
Last active Nov 21, 2016
Internationalization of Archivematica workflow data

Internationalization of Archivematica workflow data



There is a piece of work particularly challenging in the Archivematica I18N project that this document tries to break down into smaller units of work. Archivematica's workflow data is currently kept in a relational database managed by the Dashboard. It includes information about the microservices, including human-readable strings (labels) that are shown in the user interface. These strings need to be translated into other languages other than English.

The workflow data is currently considered static data not editable by the user. Keeping it in the database makes it hard to maintain (e.g. changes require database migrations) and hard to translate. This document suggests pulling this workflow data our of the database and store it in a simple JSON file - simplest way I can think of but with the goal of making much easier to introduce new way to describe our workflow rules in the future. This

View nodesource.gpg.key
Version: GnuPG v1
Comment: GPGTools -

Keybase proof

I hereby claim:

  • I am sevein on github.
  • I am sevein ( on keybase.
  • I have a public key ASCd7FoReOoeuZ6XlDAEbkKKc2dgJm5Pnqewzz2wfSMF-Qo

To claim this, I am signing this object:

sevein /
Last active Jan 14, 2016
mbox extractor


mboxext is a Mbox mailbox message extractor.


$ python -v /home/vagrant/Sent.mbox /home/vagrant/output/

2015-10-01 17:54:46,060 [mboxext] INFO - Target directory already exists and it's not empty
2015-10-01 17:54:46,061 [mboxext] INFO - Opening Mbox mailbox: /home/vagrant/Sent.mbox
View langs.csv
ab Abkhazian
ace Achinese
ach Acoli
ada Adangme
ady Adyghe
aa Afar
afh Afrihili
af Afrikaans
afa Afro-Asiatic Language
ain Ainu
sevein / patch-settings-filter.diff
Created Apr 21, 2013
Simple example on how to avoid static taxonomies by caching their IDs in a cache.
View patch-settings-filter.diff
diff --git a/lib/filter/QubitSettingsFilter.class.php b/lib/filter/QubitSettingsFilter.class.php
index 8894026..6e091fc 100644
--- a/lib/filter/QubitSettingsFilter.class.php
+++ b/lib/filter/QubitSettingsFilter.class.php
@@ -27,7 +27,34 @@ class QubitSettingsFilter extends sfFilter
// Overwrite/populate settings into sfConfig object
+ // Load custom taxonomies
+ $this->loadCustomTaxonomies();
View gist:5281509
import shlex
s = "name=peanut priv=with\_underscore.*:ALL"
# Ansible method
print shlex.split(s)
# Trying something different
lex = shlex.shlex(s, posix=True)
lex.whitespace_split = True
sevein / fix-issue-4539.patch
Created Jan 17, 2013
Fix for issue #4539 for ICA-AtoM 1.3.0
View fix-issue-4539.patch
diff --git a/apps/qubit/modules/user/actions/indexAction.class.php b/apps/qubit/modules/user/actions/indexAction.class.php
index 806c432..57dc69f 100644
--- a/apps/qubit/modules/user/actions/indexAction.class.php
+++ b/apps/qubit/modules/user/actions/indexAction.class.php
@@ -32,6 +32,6 @@ class UserIndexAction extends sfAction
- $this->amountOfNotes = count($this->resource->notes);
+ $this->amountOfNotes = count($this->resource->getNotes());
You can’t perform that action at this time.