Skip to content

Instantly share code, notes, and snippets.

@valeriocos
valeriocos / osgi-maven-deps.txt
Created December 8, 2019 17:40
OSGi Maven dependencies
Manually:
OSGi:
- Bundles: None
- Packages (142 total / 61 unique / 41 after cleaning the intra-bundle dependencies)
com.orientechnologies.common.concur.lock
com.orientechnologies.common.concur.resource
com.orientechnologies.common.console
com.orientechnologies.common.console.annotation
com.orientechnologies.common.exception
com.orientechnologies.common.io
@valeriocos
valeriocos / discrepancy.py
Last active December 4, 2019 17:38
compare raw and upstream gitlab data
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2019 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@valeriocos
valeriocos / projects.json
Last active December 14, 2019 16:05
A short list of IoT projects (git and github repos)
{
"Camel": {
"git": [
"https://github.com/apache/camel"
],
"github": [
"https://github.com/apache/camel"
],
"meta" : { "title" : "Apache" }
},
@valeriocos
valeriocos / rocketchat.txt
Created November 27, 2019 16:30
CROSSMINER rocketchat endpoint API evaluation
http://localhost:8182/projects: 12 ms
http://localhost:8182/projects: 8 ms
http://localhost:8182/metrics/p/RocketChat: 30 ms
http://localhost:8182/projects/p/RocketChat/m/bugs.cumulativeNewUsers: 17 ms
http://localhost:8182/projects/p/RocketChat/m/coreCommittersChurnBar: 23 ms
http://localhost:8182/projects/p/RocketChat/m/CeJavaQuartilesHistoric: 16 ms
http://localhost:8182/projects/p/RocketChat/m/AHFJavaHistoric: 13 ms
http://localhost:8182/projects/p/RocketChat/m/bugs.severity.duplicateBugs.percentages: 34 ms
http://localhost:8182/projects/p/RocketChat/m/bugs.severity.sentimentAtThreadBeggining: 15 ms
http://localhost:8182/projects/p/RocketChat/m/documentation.sentiment.entries: 4 ms
#!/usr/bin/env python3
"""
Terraform Inventory Script
==========================
This inventory script generates dynamic inventory by reading Terraform state
contents. Servers and groups a defined inside the Terraform state using special
resources defined by the Terraform Provider for Ansible.
Configuration
[
{
"conditions": [
{
"field": "origin",
"value": "/tmp/perceval_mc84igfc/gittest"
}
],
"set_extra_fields": [
import os
import subprocess
current_directory = os.getcwd()
REPO_URL = "https://github.com/chaoss/grimoirelab-perceval"
REPOSITORY_NAME = os.path.join(current_directory, REPO_URL.split("/")[-1])
# checkout to commit
sha = "076953e95735401b4d9266562f9ae406a30751a0"
[
{
"conditions": [
{
"field": "author_name",
"value": "Valerio Cosentino"
}
],
"date_range": {
"field": "grimoire_creation_date",
@valeriocos
valeriocos / external_data.json
Last active September 28, 2019 07:39
An example of external data
[
{
"query_fields": [
{
"field": "Author_name",
"value": "Miguel Ángel Fernández"
}
],
"set_extra_fields": [
{
@valeriocos
valeriocos / upload-all.sh
Created September 26, 2019 10:42
[crossminer] Upload Elasticsearch indexes (remember to create the BACKUP_FOLDER, you need to install elasticdump)
#!/bin/bash
BACKUP_FOLDER=backup
ELASTICSEARCH=https://admin:admin@localhost:9200
echo "scava-conf-smells"
NODE_TLS_REJECT_UNAUTHORIZED=0 elasticdump \
--input=$BACKUP_FOLDER/scava-conf-smells.mapping.json \
--output=$ELASTICSEARCH \
--output-index=scava-conf-smells \