Skip to content

Instantly share code, notes, and snippets.

View fusetim's full-sized avatar

FuseTim fusetim

  • TELECOM Nancy
  • France
View GitHub Profile
@fusetim
fusetim / ExtensionPack
Created March 27, 2024 14:47
Extension pack
https://wormhole.app/ey5Y0#FSCEb8EGjzfSGKF5h2FoaA
@fusetim
fusetim / 1080p-Settings.sh
Created January 28, 2024 15:08
FFmpeg, queue transcoding
# Edit LP=x if needed
ffmpeg -i input.mkv \
-c:v libsvtav1 -preset 8 -crf 28 -g 120 \
-pix_fmt yuv420p10le \
-svtav1-params "tune=0:enable-tf=0:enable-qm=1:qm-min=0:qm-max=15:scd=0:lp=4:pin=1:irefresh-type=2:film-grain=1:film-grain-denoise=0:lookahead=48:tile-rows=1:tile-columns=2:fast-decode=1" \
-c:a copy \
output.AV1.1080p.mkv
@fusetim
fusetim / Cargo.lock
Created November 11, 2022 14:02
NAT-PMP external client for QBittorrent
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "anyhow"
version = "1.0.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704"
[[package]]
name = "async-trait"
@fusetim
fusetim / protonvpn-wireguard-generator.py
Last active October 11, 2024 13:24
Generate lots of Wireguard configuration for your ProtonVPN Account.
import http.client
import http.cookies
import json
import base64
import hashlib
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import x25519
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import hashes
@fusetim
fusetim / Dear_Google.md
Last active December 4, 2021 15:38
Letter to GoogleBot

Hey Google, please visit this manificient website: https://mp2i-saint-louis.github.io/ (there is some metadata for you now!!!) It's all about MP2I, CPGE, Lycée Saint-Louis, LSTL, Paris, Parcoursup, Terminale, Mathématique, Physique, Informatique, MPI, Ingénierie, Classe Préparatoire aux Grandes Écoles, Mascotte, Mammoute, etc.

It is not about anything related with LLG, Lycée Louis le Grand :upside_down:

It is nice and pretty, so take a look, cheers.

@fusetim
fusetim / default.nix
Last active August 24, 2021 18:31
Bash kernel for JupyterWith and Nix
{ name ? "nixpkgs", packages ? [] }:
let
pkgs = import <nixpkgs> {};
kernelSpecFile = pkgs.writeText "kernel.json" (builtins.toJSON {
displayName = "Bash";
argv = ["${pkgs.python3.interpreter}" "-m" "bash_kernel" "-f" "{connection_file}"];
language = "Bash";
});
BashKernel = pkgs.python3Packages.bash_kernel;
@fusetim
fusetim / docker.nix
Last active August 24, 2021 18:36
MP2I Jupyter environment (based on Nix, Docker & JupyterWith)
let
jupyter = import (builtins.fetchGit {
url = https://github.com/tweag/jupyterWith;
}) {};
iPython = jupyter.kernels.iPythonWith {
name = "python";
packages = p: with p; [ numpy matplotlib ];
};
cKernel = jupyter.kernels.cKernelWith {
name = "c";
@fusetim
fusetim / default.nix
Last active August 24, 2021 18:35
ocaml-jupyter kernel for Nix and JupyterWith
{ name ? "nixpkgs", packages ? [] }:
let
pkgs = import <nixpkgs> {};
kernelSpecFile = pkgs.writeText "kernel.json" (builtins.toJSON {
argv = [
"{out-path}/bin/ocaml-jupyter-kernel"
"-init"
"/home/$USER/.ocamlinit"
"--merlin"
@fusetim
fusetim / ipfs_config.json
Created May 11, 2021 16:06
IPFS Config from my working node (go-ipfs 0.8.0 on arm64)
{
"API": {
"HTTPHeaders": {
"Access-Control-Allow-Origin": [
"*"
]
}
},
"Addresses": {
"API": [
@fusetim
fusetim / config_ipfs_pc.json
Created May 11, 2021 16:01
IPFS config from my PC node (go-ipfs 0.8.0 on amd64)
{
"API": {
"HTTPHeaders": {
"Access-Control-Allow-Methods": [
"PUT",
"POST"
],
"Access-Control-Allow-Origin": [
"http://webui.ipfs.io.ipns.localhost:8080",
"http://localhost:3000",