Skip to content

Instantly share code, notes, and snippets.

View edouard-lopez's full-sized avatar
🏠
Working from home

Édouard Lopez edouard-lopez

🏠
Working from home
View GitHub Profile
@edouard-lopez
edouard-lopez / BoondManager Admin.sys - devops en télétravail - Cover Letter.md
Created May 8, 2020 12:41
BoondManager Admin.sys - devops en télétravail - Cover Letter.md

Lettre de motivation

Bonjour,

Je suis un ingénieur logiciel avec une expériences de projets fullstack (Python, Docker, Ansible, CI / CD, etc.) et un fort goût pour l'UX, les tests et l'automatisation. J'ai également une expérience des frameworks JS populaires (React, Vue, Ember et AngularJS).

Je sais :

  • Collaborer avec le client pour faire évoluer la plateforme existante ;
@edouard-lopez
edouard-lopez / libsass-install.bash
Last active October 17, 2019 17:17
Installing/Compiling libsass and sassc on Ubuntu 14.04+/Linux Mint 17+ (needed by node-sass)
# Based on https://github.com/sass/libsass/wiki/Building-with-autotools
# Install dependencies
apt-get install automake libtool
# Fetch sources
git clone https://github.com/sass/libsass.git
git clone https://github.com/sass/sassc.git libsass/sassc
# Create configure script
@edouard-lopez
edouard-lopez / compare-git-hook-management-tools.md
Last active April 23, 2019 09:02
Comparing git hooks management tools

Git hooks comparison

Tools taken from https://github.com/aitemr/awesome-git-hooks.

Legend: : yes, : no, : broken, xn: run against n versions

project language Tests CI Stars Description
Githooks shell ~100 ✔ x12 ~150 Auto-install Git hook, that supports hooks in any language checked into Git and also shared repos.
@edouard-lopez
edouard-lopez / logo.svg
Created February 14, 2019 18:09
Pure fish logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@edouard-lopez
edouard-lopez / algo.py
Created January 26, 2019 16:25
Run with `python algo.py`
import hashlib
import binascii
def calc_entropy():
digest_algorithm = "sha256"
master_password = 'password'
salt = 'site'+'login'+hex(1)[2:]
iterations = 100000
derived_key_length = 32
@schrodincat I didn't notice you updated your message.
That's an off-topic discussion, but I recommend reading:
* [GitFlow considered harmful](https://www.endoflineblog.com/gitflow-considered-harmful) by Adam Ruka
* [What are the pros and cons of git-flow vs github-flow?](https://stackoverflow.com/q/18188492/802365)
* [Trunk Based Development](https://trunkbaseddevelopment.com/)
Personally I tend to a simple workflow:
* a master branch that is functional/readable ;
* short-lived pull requests (less code=better) ;
set color_success (set_color green)
set color_error (set_color --bold red)
set color_white (set_color white)
set color_normal (set_color normal)
function pure::set_fish_config_path
printf "\tSet environment variable: %s\n" "\$FISH_CONFIG_DIR"
if test (count $argv) -ge 1
set -gx FISH_CONFIG_DIR $argv[1]
else
time ffmpeg \
-i ./data/partie-1:-Apprendre-300-mots-du-quotidien-en-LSF.jauvert-laura.hd.mp4 \
-y \
-vf scale=1280x720 \
-b:v 1024k \
-minrate 512k \
-maxrate 1485k \
-pass 1 \
-quality good \
-speed 4 \
@edouard-lopez
edouard-lopez / extract-and-encode.bash
Last active December 15, 2018 20:38
extract-and-encode.bash
#!/usr/bin/env bash
# see: https://askubuntu.com/q/56022/22343
# REQUIREMENT:
# sudo apt install --yes ffmpeg libav-tools
# USAGE
# bash -x ./scripts/extract-and-encode.bash "$path/to/videos" [path/to/timing.tsv]
IS_RUNNING_TESTS="${IS_RUNNING_TESTS:=false}"
FAIL=1
@edouard-lopez
edouard-lopez / get-video.bash
Created November 23, 2018 20:10
fetch video from Files supported by Wikimedia France - Elix category on Wikimedia commons https://commons.wikimedia.org/wiki/Category:Files_supported_by_Wikimedia_France_-_Elix
#!/usr/bin/env bash
wget --quiet --continue https://upload.wikimedia.org/wikipedia/commons/transcoded/7/75/Achat_Nm_1_1_1_-_Elix.ogv/Achat_Nm_1_1_1_-_Elix.ogv.480p.vp9.webm
wget --quiet --continue https://upload.wikimedia.org/wikipedia/commons/transcoded/a/a4/Alasaintglinglin_Adv_1_1_-_Elix.ogv/Alasaintglinglin_Adv_1_1_-_Elix.ogv.480p.vp9.webm
wget --quiet --continue https://upload.wikimedia.org/wikipedia/commons/transcoded/1/18/Ame_Nf_2_2_1_-_Elix.ogv/Ame_Nf_2_2_1_-_Elix.ogv.480p.vp9.webm
wget --quiet --continue https://upload.wikimedia.org/wikipedia/commons/transcoded/7/7e/Analogie_Nf_1_2_1_-_Elix.ogv/Analogie_Nf_1_2_1_-_Elix.ogv.480p.vp9.webm
wget --quiet --continue https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4a/Appetit_Nm_1_1_1_-_Elix.ogv/Appetit_Nm_1_1_1_-_Elix.ogv.480p.vp9.webm
wget --quiet --continue https://upload.wikimedia.org/wikipedia/commons/transcoded/a/a6/Archipel_Nm_1_2_1_-_Elix.ogv/Archipel_Nm_1_2_1_-_Elix.ogv.480p.vp9.webm
wget --quiet --continue https://upload.wikimedi