Francois Marier: Recovering lost git commits
Say you just deleted a branch or did a git reset --hard <earlier commit> and in the process lost a commit which you intended to keep.
Well, the good news is that unless you have run git gc to run a pass of garbage collection over your repo and get rid of objects which aren't linked to anymore, the objects for your lost commits should still be in the repo.
If you remember the SHA-1 IDs then you can simply use git cherry-pick to apply them to the current branch. However, if you don't have these commit IDs anymore, there is still a way to get to them.
This command will display all commits from the most recent to the oldest one:
Well, the good news is that unless you have run git gc to run a pass of garbage collection over your repo and get rid of objects which aren't linked to anymore, the objects for your lost commits should still be in the repo.
If you remember the SHA-1 IDs then you can simply use git cherry-pick to apply them to the current branch. However, if you don't have these commit IDs anymore, there is still a way to get to them.
This command will display all commits from the most recent to the oldest one:
git log -g
Yes, this is just to bookmark what Romain
There seems to be indeed a meme on
After more than one year, I decided it's time to resurrect pub reviews
category on my blog. The delay was partly caused by my half year trip to
Japan meanwhile and lack of motivation to blog, but I think now I'm
ready to push some more reviews.
This time I'll recommend Kozlovna (sorry no web pages exists, address is
Lidick 20, 150 00 Praha 5). I randomly found it when walking in the
city centre and I was really positively surprised by quality of beer
(Velkopopovick Kozel 11 Medium), food and service. On my first visit I
had great ribs, on second deer fillets and both were just delicious.
The interior perfectly matches name of the restaurant and the brewery
which ships the beer (Kozel = billy-goat) and you can find horns or goat
shapes all around. Another plus is that half of the restaurant is non
smoking, so you don't have to smell that ugly smoke.

I'm a fairly big fan of the Rails web development framework; it uses a
programming language I quite enjoy using, and deals with the
"bureaucratic" overhead of writing a web application with minimal fuss,
leaving me to think about the things that matter -- my application's
functionality.
To achieve this wonderous feat[
Some time ago I used
The new
iPod Touch Remote.
Craft a webserver application on your MacBook.
Create a web page with two buttons, up and down.
Using Xtest, handle up button with a PgUp key,
and down button with a PgDn key.
Connect to your webserver using iPodTouch, and voila, you have a iPodTouch remote
controlling your presentation.
Prepare your MacBook with avahi so that you can connect with random wireless environment.
The up/down picture is not good, looking for better contributions.
Source available from
git clone git://git.debian.org/git/tokyodebian/monthly-report.git,
utils/ipodtouchremote

Do you regularly ssh into machines which have dynamic IP addresses, and get
really annoyed with OpenSSH warning that the IP's key doesn't match the host
key? I certainly do, with machines announce their names using mDNS and a DHCP
server in my router. Today I finally checked the documentation and found out
how to skip this check.
The magic option is CheckHostIP, which you can set
in .ssh/config on a per-host level. I've got this in
my config:
