Reverting to a previous version of a file using git

View list of versions for a file:

git log main.m

This will display a list of commits for that file:

commit d689ccce47c51a478550609db124afe2940a0a21
Author: Martyn Davis <mad@madlid.com>
Date:   Mon Oct 5 14:02:56 2015 +1100
    Some changes
commit 9f0c61426043e3323365e89b2b1a08c3282cce6b
Author: Martyn Davis <mad@madlid.com>
Date:   Mon Oct 5 07:47:41 2015 +1100
    First working version

To revert back to the first commit of main.m:

git checkout 9f0c61426043e3323365e89b2b1a08c3282cce6b main.m

Techmeme – When Less is More

The more articles Techmeme consolidates, the less room there is for stories, or so it seems.

Hiding the ‘More’, ‘Tweets’ and ‘See Also Mediagazer’ information, and allowing it to be optionally expanded, story by story, or for all stories, will allow more stories to be shown on the one page.

Seeing this:

Techmeme-Less

Seems so much better than this:

Techmeme-Normal

A story is displayed in three states, each of which viewed in turn by clicking on the “More: X Tweets: Y” text.

First state – no more and/or tweet information is displayed.

Techmeme Story - None

Second state – a summary of the more and/or tweet information is displayed, which is the default Techmeme state.

Techmeme Story - Summary

Third state – full details of the more and/or tweet information is displayed.

Techmeme Story - Full

You can also set the story state for all stories on the page, by using the ‘buttons’ on the header and footer bars.

Techmeme Bar Buttons

Where:

◇ – Hides all more and/or tweet information for all stories.
◈ – Shows more and/or tweet summary information for all stories.
◆ – Shows all more and/or tweet information, in full, for all stories.

(The images make more sense on Windows, as they are slightly different in appearance than the above which was taken off a Mac)

The Techmeme-Less browser extension is available for:

Browser Extensions

Being able to change web pages has intrigued me.

So I wrote a simple browser extension to hide/unhide the More/Tweets information within Techmeme pages.

Available for: