Skip to content

Instantly share code, notes, and snippets.

@valeriocos
valeriocos / ATLQueryLauncher.java
Created February 15, 2017 20:10
ATL EMFTVM query launcher
package codeskills.query;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.m2m.atl.emftvm.EmftvmFactory;
@valeriocos
valeriocos / SampleDialog.java
Created February 16, 2017 17:20
SampleDialog SWT with ISWTObservableValue
public class SampleDialog extends Dialog {
private DataBindingContext context = new DataBindingContext();
public SampleDialog(Shell parentShell) {
super(parentShell);
}
@Override
protected Control createDialogArea(Composite parent) {
@valeriocos
valeriocos / get-bearer-token-twitter-api
Created June 7, 2018 12:54
Get a bearer token for Twitter application-only requests in Python3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2018 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.
#
@valeriocos
valeriocos / groups.io subscriptions for your token
Last active October 30, 2018 13:54
List groups.io subscriptions for a given input token
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2018 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 / utils-archimedes.py
Last active January 24, 2019 14:18
Import/Export Kibana dashboards with Archimedes
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014-2018 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 / collect-archives-seq.py
Last active August 7, 2023 22:23
Download and process the archives from githubarchive.com between two dates
# -*- 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 / collect-archives-processes.py
Last active April 2, 2019 16:14
Download and process the archives from githubarchive.com between two dates using multiprocessing
# -*- 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 / collect-archives-threads.py
Last active April 2, 2019 21:33
Download and process the archives from githubarchive.com between two dates using threads
# -*- 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 / collect-archives-store-in-db.py
Last active April 2, 2019 21:34
Download and process the archives from githubarchive.com between two dates, the results are stored to a MySQL database
# -*- 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 / collect-archives-opt.py
Last active April 8, 2019 20:04
Download the archives from githubarchive.com between two dates, process them, store the results in a MySQL db (pool threads and bulk inserts)
# -*- 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,