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
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
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
@edouard-lopez
edouard-lopez / keybase.md
Created February 19, 2018 13:46
keybase.md

Keybase proof

I hereby claim:

  • I am edouard-lopez on github.
  • I am edouard_lopez (https://keybase.io/edouard_lopez) on keybase.
  • I have a public key whose fingerprint is 7E13 8DF0 7ACC 7837 459F 65AD 0F90 A96C 5FEB 6076

To claim this, I am signing this object:

@edouard-lopez
edouard-lopez / How to root and flash samsung galaxy s5 mini (SM-G800F).md
Last active August 8, 2023 12:24
How to root and flash samsung galaxy s5 mini (SM-G800F) with LineageOS 14.1
@edouard-lopez
edouard-lopez / lsf.json
Created November 9, 2017 13:13
lsf.json
[
{
"key": "abbaye",
"label": "Abbaye",
"video": "http://lsf.education.fr/videos/abbaye.flv"
},
{
"key": "abdiquer",
"label": "Abdiquer",
"video": "http://lsf.education.fr/videos/abdiquer.flv"
@edouard-lopez
edouard-lopez / 00.rules.md
Last active May 3, 2017 10:10
#Devore a 15-days locavore marathon (2017 aka 2nd edition)

Règles

  • nos repas quotidiens sont composés à 100% de produits locaux ;
  • un produit local est nécessairement produit et transformé dans un rayon maximum de 200 kilomètres.
    • tous les composants respecte la règle précendente.

Précision

  • si l'ingrédient non local est présent mais représente moins de 1% ?
  • genre si le saucisson est local mais salé avec du sel d'on ne sait où ?
  • s'il y a du poivre (pas local) dans un plat préparé local ?
@edouard-lopez
edouard-lopez / chinese.awk
Last active March 29, 2017 18:03
Filter codepoint from raw Unihan database
#!/usr/bin/env awk
BEGIN {
split(toggleValues, boundaries, ",")
start=0
end=start+1
}
/U\+/ && /kMandarin/ {
row = toHex($1);
@edouard-lopez
edouard-lopez / 中.svg
Created March 28, 2017 09:08
hanzi pinyin font file
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.