Skip to content

Instantly share code, notes, and snippets.

View murdos's full-sized avatar

Aurélien Mino murdos

  • Lyon, France
View GitHub Profile
@murdos
murdos / RulesConcept
Created October 20, 2023 19:39
Simplified jqassistant-asciidoctorj-extensions templates
<#list concepts as rule>
[#jqassistant_${rule.id}]
= ${rule.description}
****
<#if rule.hasReports>
<#list rule.reports.links as labeledLink>
link:${labeledLink.link}[${labeledLink.label}]
</#list>
<#list rule.reports.images as labeledImage>
@murdos
murdos / microservice-demo.jdl
Created October 11, 2020 15:08
JDL microservice micronaut
application {
config {
baseName store,
applicationType gateway,
packageName com.jhipster.demo.store,
serviceDiscoveryType consul,
authenticationType oauth2,
prodDatabaseType mysql,
@murdos
murdos / generate-jhi-sample.sh
Last active August 30, 2020 14:58
JHipster generate sample project
#!/usr/bin/env bash
set -e
JHI_ROOT=/c/Users/aurelien.mino/git/perso/jhipster/generator-jhipster
JHI_APP=$1
JHI_ENTITY=$2
export BUILD_REPOSITORY_LOCALPATH=$JHI_ROOT
@murdos
murdos / geometry_geojson.yaml
Created October 15, 2018 15:50 — forked from bubbobne/geometry_geojson.yaml
A swagger geojson geometry description
#MIT License
#
#Copyright (c) 2017 Daniele Andreis
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
#furnished to do so, subject to the following conditions:
#
@murdos
murdos / medleyconvert.py
Last active December 27, 2015 00:48
Conversion of the medley recording-work relationships to performance / recording relationships
#!/usr/bin/python
# Change medley ARs to attributes of performance-of ARs
#
# Rough outline:
# 1. Get a list of [Recording] is medley of [Work] relationships and
# any equivalent recording_work relationship (no open edits on
# recording, work or medley relationship)
# For each:
# 2. Confirm dates do not conflict
@murdos
murdos / gist:3760388
Created September 21, 2012 08:30
Search server on beta: TODO
0. Update code from SVN + full rebuild of code
1. Releases
- launch manually updateindex2.sh --indexes release --verbose
- add this command to cron every hour with a specific log (updateindexes-release.log)
2. Recordings
- fully rebuild index for recordings (somethings like java -Xmx512M -jar index-2.0-SNAPSHOT-jar-with-dependencies.jar -indexes-dir /home/search/indexdata --indexes recording)
- launch manually updateindex2.sh --indexes recording --verbose
- add this command to cron every hour at H+30min (0:30, 1:30, ...) with a specific log (updateindexes-recording.log)
@murdos
murdos / updateindex.sh
Created September 19, 2012 12:46
updateindex.sh for beta.mb.org
#!/bin/bash
############################################################
# SETTINGS #
############################################################
# Local slave database settings
DB_HOST=localhost
DB_NAME=musicbrainz
DB_USER=musicbrainz
$ carton exec -Ilib -- prove t/tests.t :: --tests 'Controller::Artist::Create'
[...]
INSERT INTO link (id, link_type, attribute_count) VALUES (1, 1, 1);
INSERT INTO link (id, link_type, attribute_count) VALUES (2, 1, 2);
INSERT INTO link (id, link_type, attribute_count) VALUES (3, 2, 0);
INSERT INTO link_attribute (link, attribute_type) VALUES (1, 4);
INSERT INTO link_attribute (link, attribute_type) VALUES (2, 1);
murdos@hyperion:~/projects/musicbrainz/mbslave$ ./mbslave-sync.py
Downloading http://ftp.musicbrainz.org/pub/musicbrainz/data/replication//replication-60134.tar.bz2
Processing /tmp/tmpyLg7Zk.tar.bz2
- Packet was produced at 2012-06-26 00:40:22.382983+00
Traceback (most recent call last):
File "./mbslave-sync.py", line 189, in <module>
process_tar(tmp, db, schema, ignored_tables, schema_seq, replication_seq, hook)
File "./mbslave-sync.py", line 142, in process_tar
importer.process()
File "./mbslave-sync.py", line 110, in process
// ==UserScript==
// @name Import Discogs releases to MusicBrainz
// @version 2012-01-18_01
// @namespace http://userscripts.org/users/22504
// @icon http://www.discogs.com/images/discogs130.png
// @include http://*musicbrainz.org/release/add
// @include http://*musicbrainz.org/release/*/add
// @include http://*musicbrainz.org/release/*/edit
// @include http://www.discogs.com/*