Skip to content

Instantly share code, notes, and snippets.

@SpaceMonkeyForever
SpaceMonkeyForever / cargo.toml
Last active May 11, 2023 21:50
Rust throttled logger
tracing = "0.1.37"
macro_rules! try_catch {
($try_block:expr, $catch_block:expr) => {
match (|| {
$try_block
Ok::<(), Box<dyn std::error::Error>>(())
})() {
Ok(_) => {}
Err(e) => $catch_block(e),
}
};
@SpaceMonkeyForever
SpaceMonkeyForever / _code_snippets.md
Last active November 8, 2022 11:34
Code snippets/gotchas

@SpaceMonkeyForever
SpaceMonkeyForever / tensorflow-gpu-windows.markdown
Last active December 18, 2019 23:17
Installing Tensorflow GPU - Windows

Capture stream or download video:

TLDR:
streamlink url best -O | ffmpeg -i pipe:0 -c:v copy -c:a aac output.mkv
Details:
streamlink url best -o output.mkv