Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Édouard Lopez edouard-lopez

🏠
Working from home
View GitHub Profile
@edouard-lopez
edouard-lopez / c3fire.makefile
Created Nov 17, 2020
C3Fire thèse Delphine
View c3fire.makefile
download_dir:=./C3LearningLabs
install_dir:=/opt/c3system/C3LearningLabs
download-linux:
wget -c http://www.c3learninglabs.com/download/system/c3fire-v4.1.1.0/c3fire-v4.1.1.0-install-linux.tgz
echo "You need to extract the archive"
install-linux:
mkdir -p /opt/c3system
@edouard-lopez
edouard-lopez / README.md
Last active Nov 12, 2020
Flash Samsung Galaxy S i9000 using Heimdall on Linux
View README.md

Flash Samsung Galaxy S i9000 using Heimdall on Linux

⚠️ Backup your data!

Enable USB debugging

In order to be able to establish a connection to the PC via USB cable.

On Android 2.x :

@edouard-lopez
edouard-lopez / BoondManager Admin.sys - devops en télétravail - Cover Letter.md
Created May 8, 2020
BoondManager Admin.sys - devops en télétravail - Cover Letter.md
View 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 / compare-git-hook-management-tools.md
Last active Apr 23, 2019
Comparing git hooks management tools
View compare-git-hook-management-tools.md

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.
View logo.svg
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 Jan 26, 2019
Run with `python algo.py`
View 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
View gist:56d153af1b59521d2aa2f00f1f86f19b
@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) ;
View installer.fish
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
View ffmpeg.sh
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 Dec 15, 2018
extract-and-encode.bash
View 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