Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthias Beyer matthiasbeyer

View GitHub Profile
@matthiasbeyer
matthiasbeyer / lib.rs
Created Oct 15, 2020
Stream of buffers to stream of lines
View lib.rs
// should be all code...
use std::pin::Pin;
use std::result::Result as RResult;
use futures::Stream;
use futures::StreamExt;
use futures::task::Context;
use futures::task::Poll;
use anyhow::Error;
@matthiasbeyer
matthiasbeyer / git-diff-to.sh
Created Apr 17, 2021
diff a branch to a base branch
View git-diff-to.sh
#!/usr/bin/env bash
help() {
cat <<EOS
$0 [-h | --help] [base] [head]
Diff current branch (or [head], if passed) to [base]
EOS
}