Skip to content

Instantly share code, notes, and snippets.

@Chadys
Chadys / gitlab_export_user_commits.py
Last active July 4, 2023 19:51
Gitlab user all commits export
import csv
import logging
import os
from operator import itemgetter
from pathlib import Path
import pytz as pytz
import requests
import argparse
import datetime
@Chadys
Chadys / build.gradle
Last active May 23, 2023 17:24
Complete workflow configuration to deploy a flutter app to Google Play and AppStore, deploy to internal track / testflight or production depending on the branch name (staging or production)
android {
signingConfigs {
release {
if (System.getenv()["CI"]) { // CI=true is exported by Codemagic
storeFile file(System.getenv()["FCI_KEYSTORE_PATH"])
storePassword System.getenv()["FCI_KEYSTORE_PASSWORD"]
keyAlias System.getenv()["FCI_KEY_ALIAS"]
keyPassword System.getenv()["FCI_KEY_PASSWORD"]
} else {
// Dummy values, need to be replaced to be used
@Chadys
Chadys / .gitlab-to-github-ci.yml
Created May 23, 2023 16:35
Gitlab-CI job to push code to another git forge via SSH
# the following variables must be defined in "Settings > CI/CD > Variables"
# EXTERNAL_DEPLOY_HOST = github.com
# EXTERNAL_DEPLOY_REPO = [email protected]:USERNAME/REPONAME.git
# SSH_PRIVATE_KEY = content of your SSH private key file /!\ Store as type "File" and not "Variable"
sync-repo:
stage: deploy
before_script:
# fix "Permissions 0666 are too open, private key ignored" error
- chmod 400 $SSH_PRIVATE_KEY
@Chadys
Chadys / generate_sorted_color_image.py
Created January 24, 2020 19:11
My take on a Numpy version of step sorting from "The incredibly challenging task of sorting colours" by Alan Zucconi (https://www.alanzucconi.com/2015/09/30/colour-sorting/)
import itertools
import warnings
import numpy as np
import cv2
from skimage.color import deltaE_ciede2000, rgb2lab, lab2rgb, rgb2hsv
from skimage import img_as_ubyte, img_as_float32
from PIL import Image
h, w = (20, 5)
@Chadys
Chadys / scilab-with-sivp-without-errors.md
Last active April 6, 2020 14:50
How to resolve SIVP installation errors on Scilab in Linux

If like me you have some trouble to get SIVP working on Scilab, I thought I could share this notice I wrote a few years ago. I hope it can save some frustration for some of you.

First install

If you don't yet have Scilab you just need to do:

sudo apt install scilab

Once this is done, launch Scilab, and execute:

atomsInstall("SIVP")
@Chadys
Chadys / tensorflow-1.12-cuda-10.0-mac-install.md
Last active March 23, 2019 16:17
Complete set of instructions to install Tensorflow 1.12 from source with CUDA 10.0 and cuDNN 7.4.1 support on your OSX High Sierra

Tensorflow 1.12 GPU mac installation

If like me you felt very frustrated by that line in Tensorflow doc : There is no GPU support for macOS. and you wanted to prove it wrong, welcome abroad.

There are several other gist lying around explaining how to do some or all of it on older version of CUDA/Tensorflow, so I felt a need to explain it all over with the lastest versions.

References :

@Chadys
Chadys / install-cuda-10-high-sierra.md
Last active November 27, 2018 21:44
A complete guide to install CUDA 10.0 on OSX High Sierra 10.13.6