Skip to content

Instantly share code, notes, and snippets.

@seungwon0
Created January 30, 2011 02:56
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save seungwon0/802470 to your computer and use it in GitHub Desktop.
Save seungwon0/802470 to your computer and use it in GitHub Desktop.
Random commit message generator
#! /bin/sh
#
# whatthecommit - Random commit message generator
#
# Show random commit message from http://whatthecommit.com/.
#
# Seungwon Jeong <seungwon0@gmail.com>
#
# Copyright 2011 by Seungwon Jeong
curl -s http://whatthecommit.com | perl -p0e '($_)=m{<p>(.+?)</p>}s'
@sepehr
Copy link

sepehr commented Nov 2, 2014

curl -L -s http://whatthecommit.com/ | grep -A 1 "\"c" | tail -1 | sed 's/<p>//'

@killerwhile
Copy link

curl -s http://whatthecommit.com/index.txt

But you might want mind when it returns " sudo rm -rf / pawned!"...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment