annna scripts - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 3cd58c138f3641d9a5e25d0e8e686e4d276df4bb DIR parent 36cad8a633f3dc37b4f771f982e9ff8c33c66976 HTML Author: escapeinsert <escapeinsert@0x1bi.net> Date: Tue, 23 Feb 2021 10:38:21 -0500 annna scripts Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: A chucknorris | 3 +++ A darwin | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-) --- DIR diff --git a/chucknorris b/chucknorris @@ -0,0 +1,3 @@ +#!/bin/sh + +hurl https://api.chucknorris.io/jokes/random | awk -F '"value":"' '{gsub("\"}$", "", $NF);print $NF}' DIR diff --git a/darwin b/darwin @@ -0,0 +1,7 @@ +#!/bin/sh + +hurl https://darwinawards.com/darwin/ | \ +tr ' ' '\n' | \ +awk -F '"' '/https:\/\/DarwinAwards\.com\/darwin\/darwin[0-9]{4}-[0-9]{2}\.html/{print $2}' | \ +sort -R | \ +sed 1q