adb -e shell
adb -e shell
Define the following alias:
alias cppwd="__CPCD=\`pwd\`; echo -n \$__CPCD | pbcopy; echo Copied \'\$__CPCD\' to clipboard; unset __CPCD"
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 <firstname.lastname@example.org> Date: Mon Oct 5 14:02:56 2015 +1100 Some changes commit 9f0c61426043e3323365e89b2b1a08c3282cce6b Author: Martyn Davis <email@example.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
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.
Seems so much better than this:
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.
Second state – a summary of the more and/or tweet information is displayed, which is the default Techmeme state.
Third state – full details of the more and/or tweet information is displayed.
You can also set the story state for all stories on the page, by using the ‘buttons’ on the header and footer bars.
◇ – 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:
Adding a remote upstream repository is done using:
git remote add upstream GIT-URL
git remote add upstream https://github.com/moment/moment-timezone.git
Use -r (recursive) and include/exclude to target files to grep
grep --include=\*.js --exclude=\*.min.js -r . -e pattern
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.
As per http://pivotallabs.com/git-unadd/, you can ‘unget’ a file.
git config --global alias.unadd "reset HEAD"
You can then do the following:
git unget file
Very useful, any so much easier to remember than:
git reset HEAD file