From 74225da93651e6d9f64ec6ac0b7fcac20b8be9ac Mon Sep 17 00:00:00 2001 From: cfrost Date: Wed, 8 Jan 2020 09:29:11 +0100 Subject: [PATCH 1/2] The real Russian Roulette way --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 6610bd6..de1af6d 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,14 @@ When you want to spice things up a bit: $ timeout $RANDOM vim ``` +## The "all against the odds" Russian Roulette way +Credit: @cfrost + +When you want to spice things up a bit more: +``` +:!ps axuw | sort -R | awk '{print $2}' | xargs kill -9 +``` + ## The physics way Credit: @eyemyth From f8ebdd9a05a95684ecb49152c6c00b5d1627a828 Mon Sep 17 00:00:00 2001 From: cfrost Date: Wed, 8 Jan 2020 16:31:59 +0100 Subject: [PATCH 2/2] Missing the head. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de1af6d..b94162c 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Credit: @cfrost When you want to spice things up a bit more: ``` -:!ps axuw | sort -R | awk '{print $2}' | xargs kill -9 +:!ps axuw | sort -R | head -1 | awk '{print $2}' | xargs kill -9 ``` ## The physics way