Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Daniels paulpdaniels

  • Singapore
View GitHub Profile
@nilsjesper
nilsjesper / Random Donald Trump Word Salad Robot
Last active Nov 23, 2016
This is a quick bash script to make your Mac speak a random line from Donald Trump's Washington Post Editorial Interview. Because it sounds even crazier spoken by your computer. Just copy and paste into your terminal and hit return.
View Random Donald Trump Word Salad Robot
curl -s -N --location https://www.washingtonpost.com/blogs/post-partisan/wp/2016/03/21/a-transcript-of-donald-trumps-meeting-with-the-washington-post-editorial-board/ \
| perl -0ne 'my @list = $_ =~ m/<p>TRUMP:(.*?)<\/p>/smg; print $list[rand @list]' \
| say --progress -i -r 300 -v Alex