Skip to content

Instantly share code, notes, and snippets.

Edu González de la Herrán eedugon

Block or report user

Report or block eedugon

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
View Modeling_Granular_Fields_Parse_Display_Name_to_Major_Minor_Bugfix.painless
###########
GET _ingest/processor/grok
POST _ingest/pipeline/_simulate
{
"pipeline": {
"description": "parse major.minor.patch to sub-fields",
"processors": [
{
@eedugon
eedugon / gitlab-registry.gc.sh
Created Jul 13, 2017 — forked from pbabics/gitlab-gc.sh
Manual garbage collector for gitlab registry, it removes old revisions that are not referenced by any tag
View gitlab-registry.gc.sh
#!/bin/bash
# This is a modification of gitlab-gc.sh script created by Peter Bábics (pbabics/gitlab-gc.sh)
# Improvements
# - Searching in all BASE_PATH, not fixing the search to a depth of 2
# - Directories without valid tags or revisions directories won't be processed (to avoid unexpected issues)
# - Logging in case there's nothing to delete
# - running registry-garbage-collect only when something has been deleted
You can’t perform that action at this time.