From 9ffbb101cf342c6ae6b0e43ca589e6b71bcf4455 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Fri, 11 Jan 2013 15:02:08 +0400 Subject: [PATCH] Fuckyourself script. --- bin/fuckyourself | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/fuckyourself diff --git a/bin/fuckyourself b/bin/fuckyourself new file mode 100755 index 0000000..397a043 --- /dev/null +++ b/bin/fuckyourself @@ -0,0 +1,7 @@ +#!/bin/bash + +# Print random domain from list of domains prohibited in Russia. +# http://bolknote.ru/2013/01/10/~3831#05 + +domain=$(curl -so- http://flisti.ru/stop-list.txt | iconv -f cp1251 | awk -F'[\t\.]' 'BEGIN {srand()} $3 {print rand(), $3}' | sort -n | tail -1) +php -r '$s=explode(" ", $argv[1]); echo mb_convert_case("${s[1]}!\n", MB_CASE_TITLE, "UTF-8");' "$domain"