Skip to content

Instantly share code, notes, and snippets.

@alekratz
Created June 13, 2017 14:12
Show Gist options
  • Save alekratz/45dbb5bb99294cdbf70c89976940ce6b to your computer and use it in GitHub Desktop.
Save alekratz/45dbb5bb99294cdbf70c89976940ce6b to your computer and use it in GitHub Desktop.
use std::io::{self, Write};
fn main() {
let yes = "y\n".repeat(8192).into_bytes();
let stdout = io::stdout();
let mut stdout = stdout.lock();
loop {
stdout.write(&yes);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment