Archives de catégorie : Non classé

Collections in python

Definition of iterable and sequence objects What is an iterable object? An object capable of returning its members one at a time. Examples of iterables – all sequence types (such as list, str, and tuple) – some non-sequence types like … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Git: Reduce repository size

Reduce repository size This post is strongly inspired by the gitlab documentation( Reduce repository size ) Motivations – it slows repository fetching/cloning decreases the productivity of development in general: developers, continuous integration and so for… – it takes a large … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Linux graphical and no server hints

Formatting and partitioning install parted on an usb key in linux -download UNetbootin – download parted iso -Use UNetbootin to copy parted in the usb key Format an usb key 1. Check the device name of the key with : … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

gitlab API

Retrieve the list of all projects which I am member and with 100 results by page : curl -H « PRIVATE-TOKEN: MY_GITLAB_TOKEN » « http://foo-gitlab.com/api/v4/projects?per_page=100&simple=true&membership=true » Download a file from a repository: curl -v -o README.md -H ‘PRIVATE-TOKEN: MY_GITLAB_TOKEN’ « http://foo-gitlab.com/api/v4/projects/1234/repository/files/foo%2Fbar%2FREADME.md/raw?ref=master » where : – 1234 … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

JGit and Gitlab API

Define a composite service that propose high-level services : served by gitlab api or JGit according to the case We set the git property sslVerify to false to bypass ssl checks of the gitlab server.Here how the gitlabToken and gitlab.server.url … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Gitlab Runners

What are Gitlab Runners Gitlab runners execute pipeline jobs. These runners are configured and registered inside a gitlab runner application. That application can be installed directly on the OS or a docker container. The runners configuration is stored into /etc/gitlab-runner/config.toml … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Gitlab – Container Registry

Container Registry : features – gitlab projects have their own space to store Docker images. – graphical view and management of the registry in gitlab (« container registry » button in group/project settings) – a registry bound to Gitlab projects : restrictions … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

docker setup

Post install on Linux User Docker as a non-root user The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Template matching with Python Opencv

opencv import import cv2 opencv template matching Useful opencv functions Note:Many functions of opencv rely on the ndarray type: in input as parameter and in output as returned result. imread(filename: Any, flags: Any = None)->ndarray: It loads an image from … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

numpy basic

Install numpy pip install numpy Import numpy in code import numpy as np What a ndarray is? It is a central data structure of the NumPy library. It represents a homogeneous n-dimensional array object. it has methods to describe it … Continuer la lecture

Publié dans Non classé | Laisser un commentaire