Skip to content

Instantly share code, notes, and snippets.

View sylvain-reynaud's full-sized avatar

Sylvain Reynaud sylvain-reynaud

View GitHub Profile
root@26a9c94f84ed llama-rs]# cargo build --release
Updating crates.io index
Downloaded adler v1.0.2
Downloaded getrandom v0.2.8
Downloaded addr2line v0.19.0
Downloaded clap_lex v0.3.2
Downloaded cexpr v0.6.0
Downloaded io-lifetimes v1.0.6
Downloaded log v0.4.17
Downloaded memchr v2.5.0
[info] use ffmpeg.wasm v0.11.6
[info] load ffmpeg-core
[info] loading ffmpeg-core
[info] ffmpeg-core loaded
[info] run FS.writeFile sample-image.jpg <14789 bytes binary file>
[info] run FS.writeFile file_example_MP3_5MG.mp3 <5289384 bytes binary file>
[info] run ffmpeg command: -r 1 -loop 1 -i sample-image.jpg -i file_example_MP3_5MG.mp3 -acodec copy -r 1 -shortest -vf scale=1280:1280 result.flv
[fferr] ffmpeg version 9e96b1c Copyright (c) 2000-2020 the FFmpeg developers
[fferr] built with emcc (Emscripten gcc/clang-like replacement) 2.0.8 (d059fd603d0b45b584f634dc2365bc9e9a6ec1dd)
[fferr] configuration: --target-os=none --arch=x86_32 --enable-cross-compile --disable-x86asm --disable-inline-asm --disable-stripping --disable-programs --disable-doc --disable-debug --disable-runtime-cpudetect --disable-autodetect --extra-cflags='-O3 --closure 1 -I/src/build/include -s USE_PTHREADS=1' --extra-cxxflags='-O3 --closure 1 -I/src/build/include -s USE_PTHREADS=1' --extra-ldflags='-O3 --closure 1 -I/src/build/includ
#!/bin/bash
# Change MAC address
## Find the device used to be connected to internet : mine is wlp2s0
ip link ls
## Set the DEVICE variable
DEVICE=wlp2s0
## Backup the old MAC address
ip link show ${DEVICE} | tail -1 | cut -d" " -f 6 >> ~/${DEVICE}_mac_address_history
## Stop the device to manipulate it
@sylvain-reynaud
sylvain-reynaud / diabetes.csv
Created April 27, 2022 09:51
diabetes.csv for ML
Pregnancies Glucose BloodPressure SkinThickness Insulin BMI DiabetesPedigreeFunction Age Outcome
6 148 72 35 0 33.6 0.627 50 1
1 85 66 29 0 26.6 0.351 31 0
8 183 64 0 0 23.3 0.672 32 1
1 89 66 23 94 28.1 0.167 21 0
0 137 40 35 168 43.1 2.288 33 1
5 116 74 0 0 25.6 0.201 30 0
3 78 50 32 88 31 0.248 26 1
10 115 0 0 0 35.3 0.134 29 0
2 197 70 45 543 30.5 0.158 53 1
Name,PClass,Age,Sex,Survived
"Allen, Miss Elisabeth Walton",1st,29,female,1
"Allison, Miss Helen Loraine",1st,2,female,0
"Allison, Mr Hudson Joshua Creighton",1st,30,male,0
"Allison, Mrs Hudson JC (Bessie Waldo Daniels)",1st,25,female,0
"Allison, Master Hudson Trevor",1st,0.92,male,1
"Anderson, Mr Harry",1st,47,male,1
"Andrews, Miss Kornelia Theodosia",1st,63,female,1
"Andrews, Mr Thomas, jr",1st,39,male,0
"Appleton, Mrs Edward Dale (Charlotte Lamson)",1st,58,female,1
@sylvain-reynaud
sylvain-reynaud / velo.vtt
Last active June 1, 2021 17:49
VTT j'adore le vélo
WEBVTT
00:02.170 --> 00:04.136
Emo, close your eyes
00:04.136 --> 00:05.597
Why?
NOW!
00:05.597 --> 00:07.405